-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drush on Ubuntu 16.04 with php5.6 installed fails with Call to undefined function cache_get() #2848
Comments
I sudo'd into root, just to see if it's a permission problem. Running as root produces the same error. |
I did do a backtrace before the get_cache function, and it revealed the issue is "Undefined class constant 'MYSQL_ATTR_SSL_CA'" (full backtrace listed below). Lots of helpful hints here, but I don't have any of these problems. All Mysql libraries loaded and working. #0 module_implements(system_theme_info) called at [/home/crm/domains/testing.crm.botany.org/public_html/includes/module.inc:957] |
Not a drush issue |
I have a relatively new Ubuntu 16.04 server running on Amazon. The server does not allow root login. A minimal Drupal 7 site is installed, as well as Drush 8. I installed Drush 8 by following these steps for global access:
http://docs.drush.org/en/8.x/install/
core-status shows:
php5.6 drush.phar core-status
PHP configuration : /etc/php/5.6/cli/php.ini
PHP OS : Linux
Drush script : /home/ubuntu/drush.phar
Drush version : 8.1.12
Drush temp directory : /tmp
Drush configuration :
Drush alias files :
when logged in as the user account, running a drupal upgrade gets:
PHP Fatal error: Uncaught Error: Call to undefined function cache_get() in /home/crm/public_html/includes/module.inc:754
Stack trace:
#0 /home/crm/public_html/includes/module.inc(954): module_implements('system_theme_in...')
#1 /home/crm/public_html/modules/system/system.module(2511): module_invoke_all('system_theme_in...')
#2 /home/crm/public_html/includes/theme.inc(798): _system_rebuild_theme_data()
#3 /home/crm/public_html/includes/theme.maintenance.inc(57): list_themes()
#4 /home/crm/public_html/includes/bootstrap.inc(2867): _drupal_maintenance_theme()
#5 /home/crm/public_html/includes/errors.inc(179): drupal_maintenance_theme()
#6 /home/crm/public_html/includes/bootstrap.inc(2604): _drupal_log_error(Array, true)
#7 [internal function]: _drupal_exception_handler(Object(Error))
#8 {main}
thrown in /home/crm/public_html/includes/module.inc on line 754
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Uncaught Error: Call to undefined function cache_get() in
/home/crm/public_html/includes/module.inc:754
Stack trace:
#0 /home/crm/public_html/includes/module.inc(954):
module_implements('system_theme_in...')
#1 /home/crm/public_html/modules/system/system.module(2511):
module_invoke_all('system_theme_in...')
#2 /home/crm/public_html/includes/theme.inc(798):
_system_rebuild_theme_data()
#3 /home/crm/public_html/includes/theme.maintenance.inc(57):
list_themes()
#4 /home/crm/public_html/includes/bootstrap.inc(2867):
_drupal_maintenance_theme()
#5 /home/crm/public_html/includes/errors.inc(179):
drupal_maintenance_theme()
#6 /home/crm/public_html/includes/bootstrap.inc(2604):
_drupal_log_error(Array, true)
#7 [internal function]: _drupal_exception_handler(Object(Error))
#8 {main}
thrown in /home/crm/public_html/includes/module.inc, line 754
This seems to be an error related to using php7 instead of 5.6. I specified 5.6 in the installation.
How do I resolve this?
The text was updated successfully, but these errors were encountered: