Memory error when both acf and wp smush pro activated

Have a problem with WP Smush Pro after the latest update. When both ACF and Smush Pro is active it gives me fatal error if open a page with ACF advanced custom field.

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /wp-includes/meta.php on line 840
I had 256 mb allocated.

After I updated it to 512 the issue is gone. It is clear that allocating more memory works. The problem is that the plugin should not require so much memory. With 512 it works but it's TOOOO MUCH memory.

  • Patrick Freitas

    Hi Alberto

    Sorry to hear that you are having this issue.

    I would say that nowadays 512M is not big deal, we have got more plugins with more features and everyday we need more PHP memory, the servers now are prepared to support heavy applications running. However I can se that the max_execution_time is set 60, the plugins need a longer time. You can try to increase the max_execution_time and degrease the PHP memory to run a test.

    You can increase on WordPress root Folder > php.ini :

    max_execution_time = 300

    Let me know the results,
    Have a Great Day
    Best Regards
    Patrick Freitas

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.