WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
W3 Total Cache Causing 500 Error on Downloadable Products (3 posts)

  1. jerome281
    Member
    Posted 3 years ago #

    Hey,
    I've got a WordPress installation with both WP e-commerce and W3 Total Cache plugins installed. The store runs fine and you can purchase without a problem.
    The problem I'm getting is that once you've purchased a product, you get a link to download, but visiting the link you get a 500 Internal Server Error.
    The error only occurrs on one of the products, and it happens to be the largest ZIP file which is 165MB.
    Looking in the server error logs, I'm getting the following kind of errors whenever I try and visit the download page:
    [Wed Nov 24 16:24:12 2010] [error] Allowed memory size of 419430400 bytes exhausted (tried to allocate 165926406 bytes)
    [Wed Nov 24 16:24:12 2010] [error] Premature end of script headers: php-script
    [Wed Nov 24 16:28:07 2010] [error] PHP Fatal error: Allowed memory size of 419430400 bytes exhausted (tried to allocate 165926406 bytes) in /var/www/html/wp-content/plugins/w3-total-cache/inc/define.php on line 233
    If I disabled W3 Total Cache, it works fine and I'm able to download the file.
    I currently have Page Caching, Browser Caching, and Minify all enabled, if I disable one at a time, nothing helps, the only way I get it to work is to disable everything.
    Has anyone else experienced this problem or does anyone know a way of fixing this issue?

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

  2. Rockle
    Member
    Posted 3 years ago #

    I would like to know this too - can someone confirm how to block certain directories on the ftp / or file sizes to be excluded from the cache plugin?

  3. Frederick Townes
    Member
    Plugin Author

    Posted 3 years ago #

    `[Wed Nov 24 16:24:12 2010] [error] Allowed memory size of 419430400 bytes exhausted (tried to allocate 165926406 bytes)
    [Wed Nov 24 16:24:12 2010] [error] Premature end of script headers: php-script
    [Wed Nov 24 16:28:07 2010] [error] PHP Fatal error: Allowed memory size of 419430400 bytes exhausted (tried to allocate 165926406 bytes) in /var/www/html/wp-content/plugins/w3-total-cache/inc/define.php on line 233`

    You're running out of memory in PHP. I'm failing to understand what is happening here especially without seeing your specific settings. Can you submit a bug submission form from the support tab of the plugin? Also realize that 400MB of memory is a lot and there is likely an issue here independent of W3TC.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic