Files downloaded by customers in my wp e-commerce are corrupt
-
Hello,
this happened to me since I installed WP e-commerce 3.8.12.1 on WordPress 3.6.1.
All files bought and downloaded by the customers where corrupt although they seemed to be correctly downloaded.
I solved the problem this way…Affected file: “wp-content/plugins/wp-e-commerce/wpsc-includes/ajax.functions.php”
Three lines added at about line 1092:
} else {
header( ‘Cache-Control: must-revalidate, post-check=0, pre-check=0’ );
}
//header( “Pragma: public” ); //existing but I commented it
header( “Expires: 0” );header(‘Pragma: private’); //ADDED
ob_clean(); //ADDED
flush(); //ADDEDCAN THIS BE ADDED TO FUTURE WP-ECOMMERCE RELEASES TO AVOID IT HAPPENING AGAIN?
SHOULD I CONTACT ANYONE FOR THAT?Thanks in advance and hope this helps everybody with the same problem.
- The topic ‘Files downloaded by customers in my wp e-commerce are corrupt’ is closed to new replies.