Jump to content

fatal error


Recommended Posts

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

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

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

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

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 by lumpiiii (see edit history)
Link to comment
Share on other sites

  • 4 months later...

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

  • 1 month later...

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

  • 1 month later...
  • 1 month later...
×
×
  • Create New...