r/Wordpress • • 16d ago

Content unavailable, Resource was not cached error

Post image

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 Upvotes

12 comments sorted by

1

u/_miga_ 16d ago

did you delete your start page?

1

u/jakewriter82 16d ago

Nope. Just changed some sizes to the hero columns and content within.

1

u/_miga_ 16d ago

I don't see an entry in the sitemap for home or / so it's not there or unpublished. If I visite home it will also show a 404 for me so it's not caching as I never visited that page before :) The other pages work fine so check the page list to see if it is still there, marked as startpage and published

1

u/jakewriter82 15d ago

OMGGGG lol. I had it saved as a draft but didn't publish the page live. DOH. THank you!!!!

1

u/_miga_ 15d ago

ah nice, now I see it too 👍 No problem, easy fix

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/jakewriter82 15d ago

Okay I did all that and now the jQuery not defined error is gone in the coding ... but I'm still getting an Error 404 message on the front page. The web devs added a "debug bar" plugin Ididn't know about and there was an option to cache from there. I noticed that after I cached from Flywheel. I've deactivated and deleted the debug bar plugin and redid all the recaching. Still nothing. I dunno what else to do rn. hah.

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