-
I'm having trouble with a Drupal 7 (latest 7.80) migration from cPanel to Cloudron.
I think I've got the db connection settings right using the environment variables as outlined in the docs.
When I succeeded with the env variables the error changed from a db error to a 500 error.
"drush status" now returns:
Call to undefined function cache_get() in /app/data/public/includes/module.inc:762
In settings.php I've done this to deal with the proxy.
$conf['reverse_proxy'] = TRUE; /** * Specify every reverse proxy IP address in your environment. * This setting is required if $conf['reverse_proxy'] is TRUE. */ $proxyip = getenv("CLOUDRON_PROXY_IP"); $conf['reverse_proxy_addresses'] = array($proxyip);
I'm sure it's some config in settings.php or .htaccess or some php mod that isn't already installed. I'm just blanking out on the next troubleshooting step to take.
Thanks.
-
@shai said in Migrating Drupal 7 to Cloudron Lamp 7.4:
Call to undefined function cache_get() in /app/data/public/includes/module.inc:762
I assume line 762 of the above file has
cache_get()
?But a random web search led me to https://www.drupal.org/forum/support/post-installation/2016-06-23/fatal-error-call-to-undefined-function-cache_get where someone suggests that "I had this issue in drush command line, when there was an error parsing the settings.php file (forgot to close a comment /* */)" . So can you check if there is some syntax error in settings.php ?
-
But a random web search
+1 for random web searches!
led me to where someone suggests that "I had this issue in drush command line, when there was an error parsing the settings.php file
That was it! A missing comma in the databases array. Thanks so much!