Background of the issue:
I am trying to resolve an issue where WPML exhausts my website's memory. My PHP memory is set up at 2 GB, which should be more than sufficient. Despite that, WPML exhausts it, leading to error 500. My problem is the same as this ticket exactly, with the same plugin and the same hosting company: https://wpml.org/forums/topic/memory-limit-issues-due-to-wpml/. I'd like to know how it was solved.
Symptoms:
WPML exhausts website memory, leading to error 500.
Questions:
I'd like to know how the issue was solved in the linked ticket.
Thanks for contacting us. I've checked your Website debug information and I noticed that the WP Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line: