• Haja

    (@hajakutbudeen)


    Hello there,

    Recently i face memory issue on our site, Error mentioned below.

    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /nas/content/live/rimrubbersta/wp-includes/class-wp-fatal-error-handler.php on line 74

    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /nas/content/live/rimrubbersta/wp-includes/class-wpdb.php on line 2153

    PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /nas/content/live/rimrubbersta/wp-includes/meta.php on line 1189

    Our current PHP memory limit 256MB

    Please advise

    • This topic was modified 3 years ago by Haja.
    • This topic was modified 3 years ago by Haja.
    • This topic was modified 3 years ago by Haja.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Faisal Ahammad

    (@faisalahammad)

    By looking at the warning message, I see that your server’s WP Memory Limit needs to upgrade.

    You may need to contact your hosting provider for that. In your WordPress installation, you can also do it from the wp-config.php file. Insert this code in that file:


    /** Memory Limit */
    define('WP_MEMORY_LIMIT', '1024M');
    define( 'WP_MAX_MEMORY_LIMIT', '1024M' );
    set_time_limit(300);

    Add it before this line:


    /* That's all, stop editing! Happy blogging. */

    Could you please perform that procedure and see if it helps?

    Thread Starter Haja

    (@hajakutbudeen)

    I increase WP_MEMORY_LIMIT from 256MB to 512MB after also i face same error issue is that safe to increase WP_MEMORY_LIMIT to 1024MB ?

    Faisal Ahammad

    (@faisalahammad)

    If you convert 536870912 bytes to mb, then you’ll see you’ll have to make it more than 536M. That’s why when you increased it to 512M, it didn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WordPress Memory Issue’ is closed to new replies.