Js file 500 Internal Server Error when minified w3 total cache
-
Hello,
Issue with WooCommerce versions 8.5.0, 8.5.1, 8.5.2 & W3 total cache version 2.2.0 – 2.6.1
I have an issue where a WooCommerce js file is coming up with 500 Internal Server Error when its minified using W3 total cache. I have this issue on two separate websites running on different servers.While attempting to debug the issue, in the browser console I see:
https://xxxxx/wp-content/cache/minify/d0546.js was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type – trying to visit this url directly to inspect it comes up with internal server error (500).Uncaught SyntaxError: expected expression, got ‘<‘ – This references the d0546.js file which i’m unable to view.
I tried to view this file directly via ftp and it does not exist.
I switched the theme to storefront and deactivated other plugins leaving just WooCommerce 8.5.2 and W3 total cache 2.6.1 the issue persisted.
I rolled back W3 total cache to several previous versions ( oldest 2.2.0 ) and the issue persisted.
I rolled WooCommerce back to 8.4.0 and the issue disappeared, versions 8.5.0, 8.5.1 and 8.5.2 this issue comes back.I tried another minification plugin ( Autoptimize ) and did not experience this issue with WooCommerce 8.5.2 so it seems to be W3 total cache specific issue.
It doesn’t seem like a w3 total cache issue because rolling the plugin back to previous versions should of cleared the issue.
If you need anymore info please let me know but it seems like a change made in WooCommerce 8.5.0 + causing the problem.
Can you fix this please?
- The topic ‘Js file 500 Internal Server Error when minified w3 total cache’ is closed to new replies.