@epicjono I am sorry you had to experience this, as it’s not nice to have your website messed up, even for a short time. I’ve checked this, and it suggests that the class ObjectCache which belongs to Asset CleanUp, is just not there. Perhaps some files got removed. Can you delete the plugin and re-install it? Just re-download it from here: https://wordpress.org/plugins/wp-asset-clean-up/ – it should work!
If the plugin worked fine so fine, then something had messed it up like another plugin or a code in the theme.
Let me know if re-installing will help! If not, this has to be investigated further.
@epicjono are you saying your website is still down or deleting the old version of the plugin and installing it again didn’t take any effect and you got the same error? You said, “I deactivated it, but the damage has already been done“. After deactivation, how’s your website working now?
After deactivation, my website is still broken. Whenever you click the website link, you’ll see that the site does not look how it’s supposed to. It shouldn’t be a bunch of text links.
I deactivated and uninstalled the plugin, but that didn’t fix the issue. I reinstalled and reactivated the plugin per your suggestion, but that didn’t fix it either.
@epicjono it looks like this is unrelated to Asset CleanUp, but most likely to say the HTML is optimized. I couldn’t detect any CSS file loading. You are also using Autoptimize. Can you deactivate that one or clear the cache? Also, you can deactivate the HTML minifier and see how it works afterward.
-
This reply was modified 1 year, 2 months ago by Gabe Livan.
Did not work. I deactivated all of my plugins.
Is there a way you could take a look at my site’s code and potentially see where the problem is?
Hi Gabe, are you still there?
The very first thing that loads is a google tracking code – did you perhaps add this in via Appearance > Theme File Editor > Header template? It looks like wp_head() is missing completely, alongside pretty much everything else that’s supposed to be in the header (meta tags etc) which is why nothing is loaded.
@epicjono Since the issue is unrelated to Asset CleanUp, I could only guess the problem. As @stylishjm said, you have one tracking code there, and it’s the only item within the HEAD tags (you should have other tag elements there, including the LINK ones for the stylesheet).
Now, what I can assume, based on my experience, is that whoever edited your theme (e.g., a developer) was in a hurry and removed by mistake wp_head(), and the only hardcoded thing in that header file (often this is called header.php in the theme) is that script. It rarely happens in coding, but you can’t exclude it in this case. The developer forgot to test the page, and you ended up like this. So, check if your theme has wp_head() in the header.
Another possible problem might be a buggy plugin (no plugin should cancel the output from wp_head(), but again, you never know).
Thank you both. wp_head() was missing, but thankfully I make all my edits on a child theme so I copied the code from the original Period theme. If I had remembered that I had a child theme, I would’ve just compared the code and probably found the issue. I apologize for the confusion. I appreciate the help!