_drupal_exception_handler Error: Uncaught Error: Call to undefined function cache_get()

Created on 28 January 2019, almost 6 years ago
Updated 17 May 2024, 7 months ago

* Below error is seen, the moment we upgrade site with drupal core 7.63 to work with php 7.1.
* It is also seen with registry_rebuild module when we attempt to run 'php registry_rebuild.php'
* It is also seen when we use latest drush ver 8.1.18 to clear registry cache.

Even a fresh site throws up this error when using drush (version 8.1.18), we try to clear registry cache.
drush cc
Enter a number to choose which cache to clear.
[0] : Cancel
[1] : drush
[2] : registry
2

Error: Uncaught Error: Call to undefined function cache_get() in includes/module.inc:762
Stack trace:
#0 /home/intranet/vizdy/sovilo.com/includes/module.inc(962): module_implements('system_theme_in...')
#1 /home/intranet/vizdy/sovilo.com/modules/system/system.module(2511): module_invoke_all('system_theme_in...')
#2 /home/intranet/vizdy/sovilo.com/includes/theme.inc(798): _system_rebuild_theme_data()
#3 /home/intranet/vizdy/sovilo.com/includes/theme.maintenance.inc(57): list_themes()
#4 /home/intranet/vizdy/sovilo.com/includes/bootstrap.inc(2894): _drupal_maintenance_theme()
#5 /home/intranet/vizdy/sovilo.com/includes/errors.inc(179): drupal_maintenance_theme()
#6 /home/intranet/vizdy/sovilo.com/includes/bootstrap.inc(2622): _drupal_log_error(Array, true)
#7 [internal function]: _drupal_exception_handler(Object(Error))
#8 {main}

🐛 Bug report
Status

Active

Version

7.0 ⚰️

Component
Bootstrap 

Last updated 6 days ago

No maintainer
Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany asb

    After upgrading some D7 sites to a new dedicated server, I am getting exatly the same issue.

    PHP version 7.3.31-1~deb10u6, the sites are on Drupal 7.100 respectively 7.99 in one case.

    Drush cc:

    $ drush cc
    Enter a number to choose which cache to clear.
     [0]  :  Cancel   
     [1]  :  drush    
     [2]  :  registry
    2
    PHP Fatal error:  Uncaught Error: Call to undefined function cache_get() in /var/www/{mysite}/includes/module.inc:763
    Stack trace:
    #0 /var/www/{mysite}/includes/module.inc(963): module_implements('system_theme_in...')
    #1 /var/www/{mysite}/modules/system/system.module(2531): module_invoke_all('system_theme_in...')
    #2 /var/www/{mysite}/includes/theme.inc(798): _system_rebuild_theme_data()
    #3 /var/www/{mysite}/includes/theme.maintenance.inc(57): list_themes()
    #4 /var/www/{mysite}/includes/bootstrap.inc(2965): _drupal_maintenance_theme()
    #5 /var/www/{mysite}/includes/errors.inc(177): drupal_maintenance_theme()
    #6 /var/www/{mysite}/includes/bootstrap.inc(2690): _drupal_log_error(Array, true)
    #7 [internal function]: _drupal_exception_handler(Object(Error))
    #8 {main}
      thrown in /var/www/{mysite}/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/{mysite}/includes/module.inc:763
    Stack trace:
    #0 /var/www/{mysite}/includes/module.inc(963): module_implements('system_theme_in...')
    #1 /var/www/{mysite}/modules/system/system.module(2531): module_invoke_all('system_theme_in...')
    #2 /var/www/{mysite}/includes/theme.inc(798): _system_rebuild_theme_data()
    #3 /var/www/{mysite}/includes/theme.maintenance.inc(57): list_themes()
    #4 /var/www/{mysite}/includes/bootstrap.inc(2965): _drupal_maintenance_theme()
    #5 /var/www/{mysite}/includes/errors.inc(177): drupal_maintenance_theme()
    #6 /var/www/{mysite}/includes/bootstrap.inc(2690): _drupal_log_error(Array, true)
    #7 [internal function]: _drupal_exception_handler(Object(Error))
    #8 {main}
      thrown in /var/www/{mysite}/includes/module.inc, line 763

    Result is: sites are inaccessible, getting an "Error 503: Backend unavailable" from the SSl gateway.

    No solution available five years after issue was reported. Changing priority to critical.

Production build 0.71.5 2024