I am trying to migrate a Drupal+CiviCRM from an old server to a new one.
I copied the files and database, updated civicrm.settings.php and settings.php, cleared the cache and made a drush up + drush updb, both ran fine.
As the new server uses PHP 7.0, I downloaded civicrm-4.7.31 drupal and l10n files to replace the version 4.4.19 that was used. However, I still have a white screen when going to the homepage.
In /var/log/nginx/error.log, I can find this error:
2018/04/30 17:54:16 [error] 20389#20389: *845 FastCGI sent in stderr:
"PHP message: PHP Fatal error: Cannot redeclare civicrm_enable()
(previously declared in
<civicrm_root_path>/sites/all/modules/civicrm/drupal/civicrm.module:781)
in
<civicrm_root_path>/sites/all/modules/civicrm/drupal/civicrm.install
on line 40" while reading response header from upstream, client:
XXX.XXX.XXX.XXX, server: XXXX, request: "GET / HTTP/1.1", upstream:
"fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "XXXX"
Edit: I already saw this post but that didn't help me fix my issue. I have only one copy of CiviCRM under my module directory. I tried the "drush vset civicrm_class_loader ''" command and now I have a new error message:
"2018/05/03 10:36:07 [error] 7010#7010: *2972 FastCGI sent in stderr:
"PHP message: PHP Fatal error: require_once(): Failed opening required
'CRM/Core/ClassLoader.php'
(include_path='.:<civicrm_old_root_path>/sites/all/modules/civicrm:<civicrm_old_root_path>/sites/all/modules/civicrm/packages:.:/usr/share/php')
> in <civicrm_root_path>/sites/default/civicrm.settings.php on line 280"
> while reading response header from upstream [...]"
With being the root path on the previous server, so it must be cached somewhere, but I cannot find where. This error disappears after a drush cc.