Category Archives: Drupal

Reset the Drupal Admin / User Password

Reset the Drupal Admin Password easily by using the below code. Create a file ‘passwordgenerate.php’ in root folder of drupal and paste the below code and execute the code. I will generates password, Just Past it into the mysql users database who is unable to login.   [codesyntax lang=”php” lines=”no”] < ?php define(‘DRUPAL_ROOT’, getcwd()); include […]

Creating Drupal 8.x modules

A simple Hello, Drupal example To Start Module follow the below steps to enable errors: Go to settings.php [codesyntax lang=”php”] <?php error_reporting(E_ALL); ini_set(‘display_errors’, TRUE); ini_set(‘display_startup_errors’, TRUE); //Note:  Do not include the opening and closing PHP tags when you copy this code ?>[/codesyntax] In addition, navigate to Administration→ Configuration→ Development → logging and errors and select “All messages”. […]