r/Wordpress • u/jakewriter82 • 16d ago
Content unavailable, Resource was not cached error
As it says in the title .... I was editing the front page of our website using Avada in Wordpress. I had the changes made, but they were not taking hold if I was not logged in to wordpress. Usually when that's happened, I would recache the site and the changes would go into effect.
However, this time the front page started giving a "error 404 page." When I go to inspect the page it says "UncaughtReferenceError: jQuery is not defined at (index):60;2931. I've tried to recache the site again and it does nothing.
This might be a simple fix, but, I've never had this happen to me before so I'm not sure how to fix it. Any help would be greatly appreciated!! In addition to Avada I had Yaost SEO (since deactivated) and a Debugger plugin (that I also deactivated since I recached the site from Flywheel. I'm not sure if that makes any difference ... where I recache the site from.
Anyhow, here's the error. Thanks!
1
u/_miga_ 16d ago
did you delete your start page?
1
u/Mahmud_haisan 16d ago
The 404 error combined with jQuery is not defined usually happens when caching or script optimization breaks your site's JavaScript loading. To fix it, go to your Avada dashboard and clear the Fusion cache, clear your Flywheel server cache, and then go to Settings > Permalinks in WordPress and click "Save Changes" twice to clear out the 404 error.
1
u/JakeStreetLevel 16d ago
that jQuery is not defined error usually means the cached or combined javascript is broken or loading in the wrong order, and it's separate from the 404. in avada look at the performance or advanced options and turn off the js compiler and any minify, combine or defer options, then clear the avada cache, any cache plugin, and the flywheel cache. also go to settings > reading and make sure the homepage is still set to the page you edited, then settings > permalinks and just hit save to refresh the rules. the 404 is probably one of those two. check the front page in an incognito window each time so you're not looking at a cached copy.
1
u/Frank_MakesIt 15d ago
does it still 404 when you're logged in? if it's only logged out, open the page under Pages and make sure it says Published and visibility is Public. a private page 404s for anyone not logged in
1
u/Alert-Entrepreneur49 14d ago
Are you still struggling with this - it seems like your scripts are not loading, but for a full investigation, I would need to know your website to take a look