From The Travis van der Font Wiki
Jump to: navigation, search

I'm not a big fan of Drupal, but every now-and-then a client is a fan and requires the usage of Drupal. So, I've created this to keep track and share all the ridiculous Drupal finding that I come across.


Manually setting the website into maintenance mode by putting the following in sites/default/settings.php:
$conf['maintenance_mode'] = TRUE;

Error 500

Whether attempting to use Drush to debug through command line or accessing the admin panel. if you receive either of the following:

Drush command terminated abnormally due to an unrecoverable error. [error] Error: Class 'RulesEventHandlerEntityBundle' not found in ...


Got error 'PHP message: PHP Fatal error: Class 'RulesEventHandlerEntityBundle' not found in /var/www/vhosts/lola.lu/rak.lola.lu/sites/all/modules/rules/modules/node.rules.inc on line 147


Edit sites/default/settings.php:
$update_free_access = TRUE;
Save and now access www.examplesite.com/update.php and continue the Drupal update It won't require a full update. It should actually stop at the very beginning and state that the update has been completed (since you already have the files). However, these will update all the registries with the current active versions and remove the above errors.

Don't forget to update $update_free_access back to FALSE !

Using Drush

Updating & Rebuilding Website with Drush:
drush dl registry_rebuild
drush up rules
drush updatedb
drush rr
drush cc all
Additional reading: https://www.drupal.org/node/2090511