Migrating drupal 7 site - getting redeclare errors

Avatar
  • Answered
I'm migrating a site to inmotion, and I get the following error when attempting to complete an ubercart checkout on the migrated site (this works fine on the original site):

Fatal error: Cannot redeclare uc_cart_view() (previously declared in /home/timons5/public_html/timonsloane.com/sites/all/modules/ubercart/uc_cart/uc_cart.pages.inc:17) in /home/timons5/public_html/timonsloane.com/sites/all/modules/contrib/ubercart/uc_cart/uc_cart.pages.inc on line 48


I did some digging, and found some references to PHP caching possibly causing the problem. Apparently PHP 5.5 might enable xcache by default? And this might conflict with opcache?
Avatar
johnpaulb-imhs1
Hello InMotionFans, Thank you for contacting us about redeclare errors after migrating your site. Since xcache is not installed on servers by default, it should not be related to this error. As a test, try renaming your php.ini file. This will rule out a PHP setting in the file. Next, try changing your PHP version in cPanel, for example to PHP 5.4. If you are using any caching plugins/modules you may want to also clear the cache there. If you have any further questions, feel free to post them below. Thank you, John-Paul