• Resolved mcataldi

    (@mcataldi)


    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.

    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”

    • This topic was modified 1 year, 2 months ago by mcataldi.
    • This topic was modified 1 year, 2 months ago by mcataldi.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mcataldi

    (@mcataldi)

    Hi. Today, I following that advice:

    Don’t just rename the directory, delete it completely. Then delete the file wp-content/advanced-cache.php – this is also used by the plugin. Then in wp-config.php you have to delete the entry

    define('WP_CACHE', true); // Added by W3 Total Cache

    in wp-config.php. This plugin should be completely out of the picture.

    I did it. And still get the same error message:

    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

    Help.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @mcataldi

    I am sorry about the issue you are experiencing and I am happy to help!

    Well, it is very strange that there is a fatal error for memory allocated for a file that does not even exist on the server since you mentioned you deleted the entire /wp-content/plugins/w3-total-cache/ folder.

    Can you please confirm that you are changing the values in the files for the domain you are having issues on and not possibly to some other website?

    Thanks!

    Hi

    May I ask how you fix this, I am having the same troblue

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