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.
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. 🙂
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.
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…?
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.
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
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?
That’s a theme? If it’s a problem please check with its support team.
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.