3

I'm trying to migrate my site from a PHP5.6 host to a PHP 7 host in preparation for Craft 3.

I've copied everything across and am trying to load an exact copy of the production site on a different domain to see if it's all working as expected.

Unfortunately I don't make it far. On hitting the site I get:

PHP Fatal error:  Uncaught Error: Call to a member function run() on integer in /blah.com.au/htdocs/craft/app/index.php:62

Stack trace:
#0 /blah.com.au/htdocs/public/index.php(19): require_once()
#1 {main}
thrown in /blah.com.au/htdocs/craft/app/index.php on line 62

There are no other details anywhere. To avoid cache issues I've also done a fresh upload of Craft and then copied across my config, templates, plugins, public directories etc. Exact same error.

I've updated the config files (db/general) to have the correct paths for this new domain. The database is the same as production.

my .htaccess shouldn't be causing issues.

Any ideas peoples?

  • I think I might've seen this when a line within one of my own plugins was failing after migrating to a server that didn't support said line. Something like that. Can you uninstall your plugins and install them again one at a time? – Clive Portman Mar 8 '17 at 15:08
  • Thanks @ClivePortman it actually turns out my MySQL wasn't installed properly. – Trev Dev Mar 8 '17 at 22:04
1

It turns out my MySQL wasn't installed correctly. I'm using RDS but my setup didn't meet the basic requirements to connect to it from PHP.

| improve this answer | |
  • Hey Trev Dev, thanks for following up and posting an answer. Don't forget to accept it and score some extra points! – Matt Stein May 9 '17 at 20:21
  • Could you share a little more about what the problem was with MySQL? I'm getting this same issue. – Katie Fritz Feb 2 '18 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.