[Hosting] Staging site running out of memory

When trying to save Asset Optimisation settings on the staging site, I’m getting an error and the logs say:

[19-Aug-2019 19:36:53 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 327680 bytes) in /var/web/staging/public_html/wp-content/plugins/wp-hummingbird/admin/class-minification-page.php on line 525

This is only happening on the staging site.

  • Dimitris
    • Support Star

    Hello there Richard,

    hope you’re doing well!

    I went ahead and inserted the following lines in wp-config.php file and I was able to save changes in Asset Optimization now.

    define('WP_MEMORY_LIMIT', '512M');
    define('WP_MAX_MEMORY_LIMIT', '512M');

    Please do let me know if you’re still experiencing this issue and if so, which exact changes you tried to make. :slight_smile:

    Thank you,

    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.