Fatal error: Out of memory
-
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:
- In wp-config:
define( ‘WP_MEMORY_LIMIT’, ‘512M’ );
- In php.ini:
memory_limit = 512M
max_execution_time = 3000
- 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.
In stackoverflow, I have been told the following: “This error is generated from W3 Total Cache plugin: Something is wrong in Object caching configuration. First, save all your error logs and W3 Total Cache configuartion settings. Then you should try to disable Object cache from W3 Total Cache plugin, It should solve temporarily the issue. Then ask in W3 Total Cache plugin support pages. ” So I am here asking.
I have renamed the “w3-total-cache” folder to “w3-total-cache_old” and the same thing is still happening. And also renamed “object-cache.php” to “object-cache_old.php”
The page I need help with: [log in to see the link]
- In wp-config:
- The topic ‘Fatal error: Out of memory’ is closed to new replies.