Allowed memory size of...

Phoca Cart - complex e-commerce extension
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 509
Joined: 07 Nov 2018, 14:55

Allowed memory size of...

Post by Nidzo »

I have a unique product that has 25 designs. I am trying to add those designs as attributes with images. Since each is unique stock is 1 piece. When I select Advanced Stock Options, a blank modal opens, and the debugger shows the following errors:

I also increased the PHP limits on the server (php 8.3 and 8.4)

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /home/xxx/dev.xxx.rs/administrator/components/com_phocacart/libraries/phocacart/product/product.php on line 1524

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 65536 bytes) in /home/xxx/dev.xxx.rs/libraries/vendor/composer/ClassLoader.php on line 576


Can this be solved with attributes or do I have to create 25 products with a quantity of 1?

Image
Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49391
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Allowed memory size of...

Post by Jan »

Hi, combination of all different variants can be memory demanding, so for some types, it is better to use simple products.
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Expert
Phoca Expert
Posts: 509
Joined: 07 Nov 2018, 14:55

Re: Allowed memory size of...

Post by Nidzo »

Thanks Jan
Post Reply