Last update: April 27, 2021 | Reading time: < 1 minute
I encountered this problem on several of my client’s sites that use Elementor as a page builder, I don’t know exactly what happened, but here are the different ways I did, hope this works too on your side.
Refresh page
Mostly I just refreshed the page and that fixed the problem. I suspect that a running process was running at the same time and consuming RAM, so PHP cannot process your image resize request.
Adjust Memory Allocation in PHP and WordPress
Increase the memory limit to add more memory to the PHP, you can do this by updating the php.ini file, look for this value; “memory_limit” and change the value to a higher number.
memory_limit = 512M
If you are on cPanelyou can change this value by going to php options / php ini editor.
You also need to notify WordPress about the memory throttling increase, add this line in wp-config.php
define( 'WP_MEMORY_LIMIT', '256M' );