Archived topic
style.min.css fails to load for recent versions of GeneratePress
2 replies · Started by Benjamin on March 9, 2021
My client's site, https://www.grafixplastics.com, has been suffering an annoying theme-related 404 error for I'm guessing at least a week. When one visits any page on the site, and inspects the page source, GeneratePress' minified master style sheet is called like so:
<link rel='stylesheet' id='generatepress-css' href='https://www.grafixplastics.com/wp-content/themes/generatepress/style.min.css?ver=5.6.2' media='all'/>
... but inspecting the file structure of the GP theme file, it's clear the minified theme file in question lives at .../themes/generatepress/assets/css/style.min.css
As a stopgap, I cloned a copy of that file in its subfolder and moved it into place in the .../generatepress top theme file, but that is ofc just a band-aid solution, gone with the next update. Can you provide any guidance on what might be happening here? I'll give login credentials if needed, but I'm hoping you might reply with a simple "We know just what this is, we've seen it before and you just need to do X." (Hope springs eternal, right?)
Thanks, :Benjamin
I should add that the site uses both WP Rocket (for local caching) and Cloudflare (for edge caching), but that even with both switched off and browser cache dumped the 404 error persisted for
<link rel='stylesheet' id='generatepress-css' href='https://www.grafixplastics.com/wp-content/themes/generatepress/style.min.css?ver=5.6.2' media='all'/>
Just sayin'. (I reactivated both caching elements for performance optimization while I await your feedback on possible root causes.)
:B
Hi there,
The theme no longer requests that file as of GeneratePress 3.0.
If it is requesting that file, it means there is still caching in place from before that version. Clearing all caches should fix this.
When I view the site, I'm not seeing any 404 errors in the console.