• I got a message from Wordfence that there was malicious code on my site. It recommended deleting the code.

    When I did that I then tried to log in to my page, I got the message:

    There has been a critical error on this website

    I can still log in to the admin panel but I have no idea how to restore the website, can someone help?

    Here is the code:
    <?php function zBa($dewwpZ){$dewwpZ=gzinflate(base64_decode(
    The issue type is: Backdoor:PHP/gzinflate.encoded.8965

    Thank you.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Where are you seeing that code? “It recommended deleting the code.” –> How did you delete it?

    The general instructions to clean up from a hack follow, but where is that code?

    Get a fresh cup of coffee, take a deep breath and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are a couple.

    Thread Starter chuck018

    (@chuck018)

    Hi Steven, I was in the Wordfence Dashboard and I saw this message: 6 issues found in most recent scan

    So I clicked it and on the next page this is what was shown:

    Filename: /home2/lynnhall/public_html/wp-content/themes/agriculture/functions.php
    File Type: Not a core, theme, or plugin file from wordpress.org.
    Details: This file appears to be installed or modified by a hacker to perform malicious activity. If you know about this file you can choose to ignore it to exclude it from future scans. The matched text in this file is: <?php function zBa($dewwpZ){$dewwpZ=gzinflate(base64_decode(
    
    The issue type is: Backdoor:PHP/gzinflate.encoded.8965
    Description: Encoded backdoor

    Thank you for your reply and I’ll follow what you recommended. 🙂

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Quick thing to try: Download a new copy of your theme as a .zip file. Unzip it on your local computer. Then, via FTP or the file manager of your hosting control panel, delete the old (bad) theme’s directory wp-content/themes/agriculture.

    When you unzipped the theme, it should be in a new directory called “agriculture”. Upload that directory back into wp-content/themes/ to replace what you just deleted.

    That may be enough to get things back. If so, then run another WordFence scan to see if you got it all.

    Thread Starter chuck018

    (@chuck018)

    Hi Steven,

    A quick comment, the Agriculture theme is no longer available to download and also, the Agriculture theme is not the activated theme the site is using.

    I’m not sure that makes any difference…?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Well then, delete it!

    Thread Starter chuck018

    (@chuck018)

    Ok, I deleted it but still have the same message when trying to access the site.

    There has been a critical error on this website.

    I’ll try your other suggestions with the guide. Thank you again.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.

    Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://wordpress.org/support/article/debugging-in-wordpress/

    You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you cannot access wp-admin, there are other ways to deactivate plugins:  https://wordpress.org/support/article/faq-troubleshooting/#how-to-deactivate-all-plugins-when-not-able-to-access-the-administrative-menus

    Thread Starter chuck018

    (@chuck018)

    I disabled all the plugins and activated 2022 Theme. Enabled all plugins one at a time and it was still good.

    When I reactivated the NEVIA plugin, it broke the site again.

    Should I follow your directions about downloading tne NEVIA as a .zip and deleting/uploading?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s a theme? If it’s a problem please check with its support team.

    Thread Starter chuck018

    (@chuck018)

    It’s a theme that is no longer available so I’m going to have to just keep trying various themes until it displays correctly.

    At least I’m back online even if it doesn’t display 100% the way I want it to.

    Thank you again for all your help, you’re amazing to say the least.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Encoded Backdoor’ is closed to new replies.