cancel
Showing results for 
Search instead for 
Did you mean: 

PHP errors when installing Magento 1.9.2

SOLVED

PHP errors when installing Magento 1.9.2

I'm upgrading from an earlier version on another host. I followed these instructions 

https://wiki.magento.com/display/m1wiki/Moving+Magento+to+Another+Server

and after much messing with permissions I can get the installation page up and set the locale, but every time I get to the database stage I get a 500 error.

The database is definitely there and the credentials correct, but the local.xml file just gets emptied.

Errors in /var/log/apache2/errorlog are as follows:

[Tue Oct 20 19:09:03.537555 2015] [:error] [pid 11535] [client 90.211.202.223:50872] PHP Fatal error: Call to a member function insert() on a non-object in /var/www/html/app/code/core/Mage/Core/Model/Resource/Resource.php on line 133
[Tue Oct 20 19:09:04.658332 2015] [:error] [pid 11533] [client 90.211.202.223:50873] PHP Fatal error: Call to a member function insert() on a non-object in /var/www/html/app/code/core/Mage/Core/Model/Resource/Resource.php on line 133
[Tue Oct 20 19:09:16.821380 2015] [:error] [pid 11566] [client 90.211.202.223:50880] PHP Fatal error: Call to a member function insert() on a non-object in /var/www/html/app/code/core/Mage/Core/Model/Resource/Resource.php on line 133
[Tue Oct 20 19:17:07.399494 2015] [:error] [pid 11591] [client 90.211.202.223:51078] PHP Fatal error: Call to a member function insert() on a non-object in /var/www/html/app/code/core/Mage/Core/Model/Resource/Resource.php on line 133, referer: http://my-site.co.uk/index.php/install/wizard/config/

 

I'm not expert enough to debug this - but I'm hoping someone can help.

 

1 REPLY

Re: PHP errors when installing Magento 1.9.2

OK - replying to myself (a little sad). 

The issue was that the local.xml.template file was missing. I restored a clean version of that and completed the install process OK.