WP eCommerce
[resolved] [Plugin: WP e-Commerce] W3 Total Cache Causing 500 Error on Downloadable Products (2 posts)

  1. jerome281
    Posted 5 years ago #

    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?


  2. Rockle
    Posted 5 years ago #

    We increased the memory alloc in wp-config.php by the same size as the product and its working fine now! :-D

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic