lumpiiii Posted November 6, 2012 Share Posted November 6, 2012 Hello, I'm using prestashop 1.5.2, site was working perfectly a whole week, yesterday after no changes in prestashop this fatal error came: Fatal error: Call to undefined method Shop::initialize() in /home/zabojcek/public_html/zeleno-drevo.si/config/config.inc.php on line 94 site: (www.zeleno-drevo.si) has anyone any idea how to fix this error? Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2012 Share Posted November 6, 2012 Hello, I'm using prestashop 1.5.2, site was working perfectly a whole week, yesterday after no changes in prestashop this fatal error came: Fatal error: Call to undefined method Shop::initialize() in /home/zabojcek/public_html/zeleno-drevo.si/config/config.inc.php on line 94 site: (www.zeleno-drevo.si) has anyone any idea how to fix this error? it's weird that error occur without any change in prestashop bo / code source. Are you sure that you don't change / delete anything? Or maybe someone else? Link to comment Share on other sites More sharing options...
lumpiiii Posted November 6, 2012 Author Share Posted November 6, 2012 Yes I'm sure, if i would make some changes then I would possibly know where is the problem. But now i have no clue. Link to comment Share on other sites More sharing options...
vekia Posted November 6, 2012 Share Posted November 6, 2012 can you login into your prestashop back office ? Link to comment Share on other sites More sharing options...
lumpiiii Posted November 6, 2012 Author Share Posted November 6, 2012 can you login into your prestashop back office ? No, the same error appears. Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted November 6, 2012 Share Posted November 6, 2012 Hi, Please check the existence of the Shop class and the function initialize() in it. It is necessary to check the files classes/shop/Shop.php and override/classes/shop/Shop.php. If you don't have these files or they don't have initialize() function, so you need to change them to the default files from the installation. Regards Link to comment Share on other sites More sharing options...
lumpiiii Posted November 6, 2012 Author Share Posted November 6, 2012 Hi, Please check the existence of the Shop class and the function initialize() in it. It is necessary to check the files classes/shop/Shop.php and override/classes/shop/Shop.php. If you don't have these files or they don't have initialize() function, so you need to change them to the default files from the installation. Regards I have done this, but the error is still here Link to comment Share on other sites More sharing options...
lumpiiii Posted November 9, 2012 Author Share Posted November 9, 2012 (edited) solved: the error was inside catch file, server and catch file clock was not the same (no idea how this changed) so the site was working perfectly for whole 3 day now this error appears: Fatal error: Cannot redeclare pSQL() (previously declared in /home/zabojcek/public_html/zeleno-drevo.si/config/alias.php:60) in /home/zabojcek/public_html/zeleno-drevo.si/classes/Db.php on line 320 what is wrong now? Edited November 9, 2012 by lumpiiii (see edit history) Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 9, 2012 Share Posted November 9, 2012 Hello, is this also when you turn on error reporting in the config.inc.php? Thanks Link to comment Share on other sites More sharing options...
joannaleng Posted November 14, 2012 Share Posted November 14, 2012 i have the same error too!! after solving the first error Link to comment Share on other sites More sharing options...
akmmedia Posted March 19, 2013 Share Posted March 19, 2013 Hi, i've got the same issue. Fatal error: Cannot redeclare pSQL() (previously declared in /homez.527/******/www/presta/config/alias.php:59) in /homez.527/******/www/presta/classes/Db.php on line 321 The error apears after i unchecked the "TAX Number is required" in Localization/Countries Anyone knows what's wrong? Im working on Presta 1.5.3.1. Thanks in advance! Link to comment Share on other sites More sharing options...
d6000 Posted April 25, 2013 Share Posted April 25, 2013 Hi, i've got the same issue. Fatal error: Cannot redeclare pSQL() (previously declared in /homez.527/******/www/presta/config/alias.php:59) in /homez.527/******/www/presta/classes/Db.php on line 321 The error apears after i unchecked the "TAX Number is required" in Localization/Countries Anyone knows what's wrong? Im working on Presta 1.5.3.1. Thanks in advance! delete db.php Link to comment Share on other sites More sharing options...
PR-MEDiA Posted May 31, 2013 Share Posted May 31, 2013 delete db.php I dont hnow why, but this works. Thanks!!! But I wonder, for what is there that file db.php? Certainly has a function. Does anyone explain it to me? Link to comment Share on other sites More sharing options...
vilto35 Posted July 16, 2013 Share Posted July 16, 2013 Yes it works for me to, but i have the same question, why this file have crashed the site? And what was his function? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts