• Resolved epicjono

    (@epicjono)


    Hi, I’ve had Assert CleanUp activated on the site for a long time. I’ve made no changes to the plugin since I installed it over a year ago. But recently, the site started looking like this.

    I spoke to someone at Bluehost support and they gave some error logs related to the plugin:

    [10-Jul-2023 18:23:21 UTC] PHP Fatal error: Uncaught Error: Class "WpAssetCleanUp\ObjectCache" not found in /home2/houghtve/public_html/wp-content/plugins/wp-asset-clean-up/wpacu-load.php:31
    Stack trace:
    #0 /home2/houghtve/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php(113): require_once()
    #1 /home2/houghtve/public_html/wp-settings.php(453): include_once('/home2/houghtve...')
    #2 /home2/houghtve/public_html/wp-config.php(99): require_once('/home2/houghtve...')
    #3 /home2/houghtve/public_html/wp-load.php(50): require_once('/home2/houghtve...')
    #4 /home2/houghtve/public_html/wp-blog-header.php(13): require_once('/home2/houghtve...')
    #5 /home2/houghtve/public_html/index.php(17): require('/home2/houghtve...')
    #6 {main}
      thrown in /home2/houghtve/public_html/wp-content/plugins/wp-asset-clean-up/wpacu-load.php on line 31

    I don’t know what to do with this, but it seems that this plugin is somehow responsible for messing up the website. I deactivated it, but the damage has already been done. Can anyone help?

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @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://www.ads-software.com/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.

    Thread Starter epicjono

    (@epicjono)

    This did not work.

    Plugin Author Gabe Livan

    (@gabelivan)

    @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?

    Thread Starter epicjono

    (@epicjono)

    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.

    Plugin Author Gabe Livan

    (@gabelivan)

    @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, 4 months ago by Gabe Livan.
    Thread Starter epicjono

    (@epicjono)

    Did not work. I deactivated all of my plugins.

    Thread Starter epicjono

    (@epicjono)

    Is there a way you could take a look at my site’s code and potentially see where the problem is?

    Thread Starter epicjono

    (@epicjono)

    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.

    Plugin Author Gabe Livan

    (@gabelivan)

    @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).

    Thread Starter epicjono

    (@epicjono)

    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!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘My website code has been messed up’ is closed to new replies.