Support » Fixing WordPress » Fatal error: Allowed memory size of bytes exhausted

  • Sunil Kumar Sharma

    (@sunilkumarthz)


    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/wp-includes/wp-db.php on line 2022

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/wp-includes/class-wp-fatal-error-handler.php on line 72

    Tried many solution but not works, deactivated all plugins and activate default theme but still facing same issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • danishnaseer

    (@danishnaseer)

    Increase PHP Memory Limit in WordPress

    G to Cpanel or access your files from FTP client > File manager > wp-config.php
    and put this code just below the line ‘That’s all, stop editing! Happy blogging.’

    define( 'WP_MEMORY_LIMIT', '256M' );

    Hope it will help you

    Thread Starter Sunil Kumar Sharma

    (@sunilkumarthz)

    Hi @danishnaseer ,

    Tried and increased up to 1024M but not working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error: Allowed memory size of bytes exhausted’ is closed to new replies.