• Resolved Peter

    (@peter-solanikow)


    I am in panic mode now.
    I cannot access my blog at all.
    I get a blank page with the following text:

    Fatal error: Class ‘WP_Query’ not found in /home/xxxyyyyy/public_html/wp/wp-settings.php on line 296

    I have gone to the wp-settings.php file in file manager and scrolled to line 296 and have found the following on that line:
    $GLOBALS[‘wp_the_query’] = new WP_Query();

    BACKGROUND
    I installed the latest version of wordpress a couple of months ago. From memory it is version 4.4.2.
    Since installation I had installed a MyShop theme. Everything worked.
    I have also installed a few of plugins:
    * woocommerce
    * all in one SEO
    * wordfence security

    All plugins worked except that piece of crap wordfence security plugin which I uninstalled yesterday since it could not complete scans and so it was useless. Since uninstaling that plugin in I cannot access the blog. When I click on the link to get to the blog I get the following message:

    Fatal error: Class ‘WP_Query’ not found in /home/xxxyyyyy/public_html/wp/wp-settings.php on line 296

    PLEASE NOTE
    I am not an expert in programming. If you want to help me please provide step by step details as I do not know technical language or scripts or the like.

    Please help.

Viewing 1 replies (of 1 total)
  • Thread Starter Peter

    (@peter-solanikow)

    I have been fortunate enough to help myself with this issue.
    I want to conclude this post by providing the solution (which worked for me) that may be useful to others here in the future.

    Basically, after the un-installation of the shitty plugin, which I referred to in my previous post, the coding/settings were not restored to what they were prior to installation. So, it seems, the coding still have reference to a plugin that was not there. This screwed my whole blog out of existence.

    Since I could not enter my blog in anyway I went to my cpanel and luckily enough I found an option that allowed me to “update” my current blog. My current blog already had the latest update, but I had done this automatically through the admin on the blog not long ago.

    Anyway, I clicked on “update” in cpanel. It did so, and in doing so it must have reset the wp-settings.php file to its default setting.

    My blog is back!!!!

    Solution: if you ever lose access to your blog because of some shitti plugin which won’t uninstall properly, just go to cpanel and update the blog version (even if you had the updated version) and this should reset setting to default.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Lost Blog’ is closed to new replies.