-1

I've just installed a fresh copy of Drupal 7 with CiviCRM and everything runs smoothly, as well as Drush (locally installed), but not when I execute it in the Drupal root directory, it immediately drops the following tantrum:

drupuser@ip-172-00-00-00:/var/www/drupal7$ drush
PHP Fatal error:  Uncaught Error: Call to undefined function cache_get() in /var/www/drupal7/includes/module.inc:763
Stack trace:
#0 /var/www/drupal7/includes/module.inc(963): module_implements('system_theme_in...')
#1 /var/www/drupal7/modules/system/system.module(2511): module_invoke_all('system_theme_in...')
#2 /var/www/drupal7/includes/theme.inc(798): _system_rebuild_theme_data()
#3 /var/www/drupal7/includes/theme.maintenance.inc(57): list_themes()
#4 /var/www/drupal7/includes/bootstrap.inc(2881): _drupal_maintenance_theme()
#5 /var/www/drupal7/includes/errors.inc(179): drupal_maintenance_theme()
#6 /var/www/drupal7/includes/bootstrap.inc(2609): _drupal_log_error(Array, true)
#7 [internal function]: _drupal_exception_handler(Object(Error))
#8 {main}
  thrown in /var/www/drupal7/includes/module.inc on line 763
Drush command terminated abnormally due to an unrecoverable error.                                                                                     [error]
Error: Uncaught Error: Call to undefined function cache_get() in /var/www/drupal7/includes/module.inc:763
Stack trace:
#0 /var/www/drupal7/includes/module.inc(963): module_implements('system_theme_in...')
#1 /var/www/drupal7/modules/system/system.module(2511): module_invoke_all('system_theme_in...')
#2 /var/www/drupal7/includes/theme.inc(798): _system_rebuild_theme_data()
#3 /var/www/drupal7/includes/theme.maintenance.inc(57): list_themes()
#4 /var/www/drupal7/includes/bootstrap.inc(2881): _drupal_maintenance_theme()
#5 /var/www/drupal7/includes/errors.inc(179): drupal_maintenance_theme()
#6 /var/www/drupal7/includes/bootstrap.inc(2609): _drupal_log_error(Array, true)
#7 [internal function]: _drupal_exception_handler(Object(Error))
#8 {main}
  thrown in /var/www/drupal7/includes/module.inc, line 763

I tried to debug it by editing module.inc and after running drush again in the root it dropped me extremely big query . I tried both phar and via composer installs, but both show the same message. I have Drupal 7.61 and drush 8.1.17 php 7.2

  • Duplicate of drupal.stackexchange.com/questions/203594 ? – hansfn Nov 22 '18 at 0:29
  • This drush error is the result of something going so badly wrong with drush startup that even trying to print the error message (which is what the cache_get() is part of) fails. It is likely to be the result of a missing php-extension or file permissions or similar. Note at #7 the call to the exception handler. – rivimey Nov 22 '18 at 17:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.