500 Internal Server Error when CSS an JS codes optimization enabled
-
Hi!
We updated our WP version to the latest one (6.5.3). After that, we encountered various glitches throughout our website (the navigational menu wasn’t working, fonts changed, links weren’t active, etc.). We tested it internally and discovered that those issues were related to the Autoptimize plugin settings. In particular, they appeared when we switched on CSS and JS code optimization. In these cases, the following errors (500 Internal Server Error) appear in the DevTools console:
curl 'https://104.197.4.9/wp-content/cache/autoptimize/js/autoptimize_single_4eca121cfb354e9b8cbf358773b23a09.js' \ -H 'Accept: */*' \ -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ -H 'Authorization: Basic Y3N1c2VyOmF2MTAx' \ -H 'Connection: keep-alive' \ -H 'Cookie: cs_custom_cookie=https%3A%2F%2F104.197.4.9%2F; gcl_au=1.1.1602272903.1716981448; ga=GA1.1.1380220482.1716981448; gid=GA1.1.434397399.1716981451; gat_UA-69354283-2=1; _ga_CJSE8BGE9N=GS1.1.1716981448.1.1.1716981639.25.0.0' \ -H 'Referer: https://104.197.4.9/' \ -H 'Sec-Fetch-Dest: script' \ -H 'Sec-Fetch-Mode: no-cors' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36' \ -H 'sec-ch-ua: "Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --insecureWe also encountered 5 more errors, but when I put them here the message is reported as spam.
What are your recommendations? What can cause those issues?
Currently, we tested all of the above in our dev website.
Best regards,
Alex
The topic ‘500 Internal Server Error when CSS an JS codes optimization enabled’ is closed to new replies.