Allowed Memory Exhausted on site with many images
-
Hello!
I’m having a problem when updating a post on my website. When I alter a post and press “update,” I get the following message:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 72 bytes) in /public_html/wp-includes/post.php on line 1904
I changed the path slightly as I don’t want to include the domain. The site features lots of large photos and each post contains a gallery with many large photos that are pulled in and lazyloaded then arranged with a masonry plugin.
Ever since upgrading wordpress, the issue has been occurring. I tried including the following line in wp-config.php:
define( 'WP_MEMORY_LIMIT', '96M' );
but the problem persisted. I also tried the steps in this article:
https://perishablepress.com/wordpress-error-fix-increase-php-memory-for-cachephp/
but also had no luck. I don’t fully understand how the memory limit works with WordPress and would love it if someone could help me understand how the memory is measured. Can anyone help me clear up this issue? Are there any concerns that I should be aware of regarding memory with this site? I don’t want to run into memory problems with all of the large images in the future, so any advice would be appreciated!
- The topic ‘Allowed Memory Exhausted on site with many images’ is closed to new replies.