Jump to content

Prestashop 1.7 Fatal error: Allowed memory size


maxipeli

Recommended Posts

Hi!

  It is my first time with Prestashop 1.7. I have been working a lot (6 years) with 1.6 version.

  I have installed the version 1.7.5.0 and imported around 600 categories and 6336 products in one language and without combinations. After this importation I am getting these error everytime I try to access to a product in backoffice:  

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 53248 bytes) in /var/www/vhosts/macrotelecom.com/precialia.com/vendor/icanboogie/cldr/lib/FileProvider.php on line 69

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in /var/www/vhosts/macrotelecom.com/precialia.com/vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/FatalErrorException.php on line 82

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 159744 bytes) in Unknown on line 0

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in /var/www/vhosts/macrotelecom.com/precialia.com/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php on line 51

   My hosting provider has increase the memory limit to 1024MB, I think it is too much, but I am still getting the error. 

   In Prestashop 1.6, I have some shops with more products, and I don't have any problem, so it is possible it is a bug? or Prestashop 1.7 is not optimize for large catalogue?

   Thank you very much for your help in advance.

 

Link to comment
Share on other sites

  • 4 months later...

Too much categories... There are a real problem of memory consumption with shop who have a lot of categories.

Problem seem to be located in src/Adapter/Category/CategoryDataProvider.php and Core dependancies. Probably in Category::getNestedCategories() or too much data to process in Form component.

Link to comment
Share on other sites

18 hours ago, Janett said:

Too much categories... There are a real problem of memory consumption with shop who have a lot of categories.

Problem seem to be located in src/Adapter/Category/CategoryDataProvider.php and Core dependancies. Probably in Category::getNestedCategories() or too much data to process in Form component.

I made a ticket on github regarding this also, and the staff forwarded it to this ticket: https://github.com/PrestaShop/PrestaShop/issues/9809#issuecomment-486703844

It seems to be a very big issue with Prestashop, that they don't really can handle. They do in fact urge people to join the developer team to solve it... 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...