WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: W3 Total Cache] Fatal error: Allowed memory size of... (7 posts)

  1. guitardaddy76
    Member
    Posted 4 years ago #

    Hi all,

    After following the installation instructions regarding permissions and uploading - I get an error after attempting to activate the plugin on my plugin dashboard page:

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /home/stockholmlife.se/www/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 1204

    Line 1204 of the specified file is:
    if ($this->_config->get_boolean('cdn.enabled') == false && $config->get_boolean('cdn.enabled') == true && $config->get_string('cdn.engine') != 'mirror') {

    I also have tried this:
    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP
    and I still get the same error message.

    If you have any suggestions, I'm open to them.
    I'm using Thesis 1.6 with a few nonintrusive plugins.

    Thanks!

    guitardaddy76

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. guitardaddy76
    Member
    Posted 4 years ago #

    Further info:

    Turning off different plugins gave me different error messages:

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /home/stockholmlife.se/www/wp-content/plugins/w3-total-cache/lib/W3/Config.php on line 693

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /home/stockholmlife.se/www/wp-content/plugins/w3-total-cache/lib/W3/Plugin/PgCache.php on line 423

    Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes) in /home/stockholmlife.se/www/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 1204

    The numbers regarding memory are constant even though the .php files that overload are different each time.

    I Look forward to your help. Thanks.

  3. Frederick Townes
    Member
    Posted 4 years ago #

    What memory size have you set? As you have already noticed PHP's defaults are not practical for today's web applications. 64M is a more reasonable value, please try that. If that define statement fails you may have to modify your PHP configuration directly.

  4. lautr
    Member
    Posted 4 years ago #

    16777216 equals 16MB Memory, ich is not pretty much.

    And more Important if you changed your Value and you still get the Same Message 'Allowed memory size of 16777216 bytes exhausted' means your Memory Max Memory Size hasnt changed at all, the Reasons could be:

    your PHP Configuration does not allow on-thy-fly-changes, or 16MB may be the absolut cap configured.

    If you are runing on a hosted Solution check with your Hoster how to increase the Memory Size, if you are runing on your own Server OR have Access to the php.ini change the value there

  5. Frederick Townes
    Member
    Posted 4 years ago #

    Well said @lautr.

  6. guitardaddy76
    Member
    Posted 4 years ago #

    I contacted the host, upped the momory to 32mb.

    This IS the best cacher so far.

    RESOLVED!

  7. Frederick Townes
    Member
    Posted 4 years ago #

    Ok great.

Topic Closed

This topic has been closed to new replies.

About this Topic