Tagged: ALB, bug, compatibility, enfold, image element, Images, php8.0, php8.1
-
AuthorPosts
-
March 14, 2024 at 4:56 pm #1437234
Hi I have a large enfold site where I get a memory exausted error when trying to edit an ALB image element.
This only occurs on the image element.
I ahve tried with REDIS enabled and REDIS disabled. I’ve also disabled caching to see if that is the issue.
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 14680120 bytes)
The weirdest part is the allowed memory limit is set to 8gb. So I dont understand why the memory limit is set at 536mb as above.
Any chance you could take a look at this? Happy to provide access to the site so you can see the problem
March 16, 2024 at 11:19 am #1437357Having done some investigation.
This problem does not occur in PHP 8.0.
I downgraded from PHP 8.1I need some help investigating this – It appears to be an issue with the ALB image element.
I dont know why the memory limit is flagging so low when it is set high in php settings.
This site has more images than any other on the server. It has 116,000 product variations. I have another with 68,000 products that does not have this issue so it appears to be a scalability problem and a memory leak.
March 18, 2024 at 12:05 pm #1437463Hi,
Sorry for the late reply.
Do you have any other error messages in the error logs of WP and the php server ?
You probably know, but just to be sure.
There are 2 memory limits to set: PHP and WP
https://www.atatus.com/blog/the-php-memory_limit-what-you-need-to-know-about-increasing-it/
As you investigated – it seems to be a problem of PHP 8.1 in conjunction with a large amount of images.
There are 2 possible problems:
– caused by our image element
– caused by WooCommerce core or a plugin you usePHP 8.1 also has a stricter type management – this also might cause a problem somewhere.
It is impossible for us to setup a test site with 116.000 products and to debug the problem on a live site is not really possible without breaking the site as we would need to insert debug code and also change php code of the image element including frontend output to locate the problem.
Do you have a chance to duplicate the site to a dev server where we can get free access (also ftp, to error logs, …) to investigate closer?
Best regards,
GünterMarch 18, 2024 at 12:22 pm #1437468Thanks Gunter,
Its a plesk server so we have full control over the server limitations.
Server is a fully hardware dedicated unit.
16 core AMD EYPC CPU with 32 threads (VCores) with 128gb of ram and 960gb nvme storage.
There is plenty of memory/ram available.I’ll clone the site and provide access. Please bear with me on this. I’ll get back to you asap. I’ve got a pretty full week this week so might have to do the site clone next week.
March 18, 2024 at 2:25 pm #1437481Hi,
No problem – it will also take me some time to investigate.
I’m tagged to this topic.Best regards,
GünterMay 3, 2024 at 4:26 pm #1442202Hi Gunter,
Having tried upgrading the site back to PHP 8.1 I can confirm that there does appear to be a compatibility problem with Enfold and 8.1 – The ALB image element displays a blank screen when selected and then the message from my original post flagging a memory limit issue.
The memory allocated to the site is much larger than the amount it claims it is limited to.
It appears to be a scalability problem – This particular site has over 130,000 product variations
Would you like me to create a test area of the site so we can investigate?
May 4, 2024 at 8:07 am #1442263 -
AuthorPosts
- You must be logged in to reply to this topic.