• Resolved mcataldi

    (@mcataldi)


    Hi. From one day to the next, my site happened to have this error, without having updated anything or made any changes to justify it.

    Fatal error: Out of memory (allocated 367001600) (tried to allocate 262144 bytes) in /var/www/html/wp-content/plugins/w3-total-cache/ObjectCache_WpObjectCache.php on line 36

    Fatal error: Out of memory (allocated 367001600) (tried to allocate 262144 bytes) in /var/www/html/wp-includes/class-wp-fatal-error-handler.php on line 35

    Therefore, I proceeded to do the following things:

    1) In wp-config:
    define( ‘WP_MEMORY_LIMIT’, ‘512M’ );
    2) In php.ini:
    memory_limit = 512M
    max_execution_time = 3000
    3) In .htaccess:
    php_value memory_limit 512M

    Someone in another forum suggested the following to me “Add the line ini_set(‘memory_limit’, ‘-1’); to your wp-config.php file.” and i tried too. It didn’t work, so I deleted it.

    The other three things I did keep but the site keeps giving the same error.

    And yes, I reset Apache after the modifications.

    I don’t know what to do. Can someone help me please?

    The page I need help with: [log in to see the link]

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