Jump to content

Memory exhausted in Tools.php on line 1062 and half-blank home page


Recommended Posts

Hello!

 

as per title, I am getting an error in Prestashop 1.4.1, that is:

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2 bytes) in /home/compto5/public_html/classes/Tools.php on line 1062

 

which seems to be related with the function

 

public static function replaceAccentedChars($str)

 

Now, this error is preventing the home page to load after displaying the categories on the top menu 

 

But randomly, refreshing the home page, I got also 

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2 bytes) in /home/compto5/public_html/classes/Tools.php on line 1064

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 128 bytes) in /home/compto5/public_html/classes/ObjectModel.php on line 135

 

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 64 bytes) in /home/compto5/public_html/classes/Tools.php on line 1061

 

etc. which is really confusing me...

 

I don't really know how I can have my home page back... It was working yesterday, but today... after inserting 4 new manufacturer, which were then deleted, and uploaded some images, the shop is gone... 

Can someone please address me to do a proper debug and understand deeply this problem?

 

I can't consider to upgrade to 1.5 because of the different way to import features, which is impossible with 1.5 starting from Excel files like we have...

 

Thanks for helping!

Fabio

Link to comment
Share on other sites

Thanks for your reply,

 

I set the php.ini memory limit to 128 mb. But the shop is very slow, the same. And yes, the errors are gone. However, the home page, only the home page, is very very slow. I use cache, compression, etc, so, I am following all the best practices. How is it possible to have yesterday a super fast shop and after a couple of uploads and 4 new manufacturer everything was down and now very slow?

 

But, generally speaking, how can I debug what is taking time? For example in Wordpress one has plugins to see which part of code (maybe a plugin itself) is consuming time and resources. Is there anything similar in PS?

 

Thank you for your precious help!

Fabio

Link to comment
Share on other sites

×
×
  • Create New...