Fatal Error – Cannot reactivate plugin
-
The admin area of my site crashed this morning with a fatal error reportedly being caused by Widget Options. The error message states:
"Uncaught Error: Failed opening required ' ... /wp-content/plugins/widget-options/includes/snippets/class-snippets-admin.php' ... in ... /wp-content/plugins/widget-options/plugin.php:146"The site is running WP 7.1.4 on PHP 8.2.35
Any ideas what I can do to fix this?
-
It appears that somehow the class-snippets-admin.php file was missing from the plugin. I uploaded a fresh/new copy of that file and everything appears to be working as intended.
Thank you for your update here @baldguy . Glad to know you were able to figure it out.
We are also running into the same issue, with the file having disappeared and needing a fresh copy of the class-snippets-admin.php file. We also confirmed the following after restoring this file several times:
– The Widget Options plugin is currently running version 4.2.7.
– The plugin passed the WordPress.org checksum verification, confirming that its current files match the official release.
– We checked the WordPress upgrade directory but did not find any temporary Widget Options update files.
– The WordPress debug log confirms that the file was missing when the plugin attempted to load it, resulting in the PHP fatal error.
– Automatic plugin updates were recorded around the same period; however, we could not establish that the update process caused the file to disappear.We could not identify any server-side activity that conclusively explains why the file repeatedly disappears.
Yeah, unfortunately I’m still having the same issue. I thought it was resolved by uploading that file, but the next day it was missing again. And again today. I have a ticket in with my hosting support to see if they’ve done anything but I haven’t heard back yet.
Widget Options 4.2.7, WP 7.1.5, PHP 8.2.35
Hello @baldguy @telloyana ,
Thanks for checking and sharing what you found. Could you let us know which WordPress security plugin you’re using, if any, and share any relevant scanner log entries forclass-snippets-admin.phpfrom around the time it disappeared? If your host runs a malware scanner, any matching entries from their logs would help too.That will help us try to reproduce the issue on our end and see if we can find a quick workaround.
Kind Regards,
Mej, Widget Options TeamFile existed last night around 5 PM last night, and waking up this morning the file is gone again. Restored it for now, but still nothing we are seeing that showcases what happened to the file. We are using the Kadence Security plugin for site scans, which are not showing any results other than clean at this time either. Apologies I can’t provide anything further at this time from what you are requesting.
Same as @telloyana – added file yesterday afternoon, woke up this morning and it’s gone again. Also using Kadence Security and can’t find the file in any of the security logs nor in the file change logs. Hosting company states that they don’t see the file in any of the daily overnight backups.
Hi @baldguy and @telloyana, the pattern you both describe narrows this down a lot, and it points to something scheduled rather than the plugin itself.
The file is there at 5 PM and gone by morning, on two different sites, and the checksum check passed, so the file was removed after installation rather than corrupted during it. That leaves two main suspects that both run overnight: an automatic plugin update that fails halfway, and a scheduled malware scan that quarantines the file.
WordPress updates a plugin by deleting the old files first and then installing the new version, so a failed auto-update leaves exactly this result: a missing file and a plugin that no longer loads. The quickest way to tell the two suspects apart is a simple test. Turn off automatic updates for Widget Options only, restore the file, and see whether it survives the night. If it is still there in the morning, the updater is the cause, and you can update it manually from now on. If it is gone again, a scanner removed it.
If it is a scanner, check these in order:
- In your hosting panel, look for the quarantine list of the host’s own scanner, usually ImunifyAV or the cPanel Virus Scanner. That list is separate from Kadence Security, so Kadence showing clean does not rule it out. Ask your host to check their overnight scan report for the exact file path and the time window when it went missing.
- Ask the host what time the overnight backup and the overnight security scan run. The file disappears between the evening and the morning, so the time it goes missing should line up with one of those scheduled jobs, and that is the one to investigate.
- Check cPanel > Cron Jobs and any scheduled tasks in WordPress for jobs that run overnight, and check the Kadence Security logs again for that file path, including any quarantine or file change entries.
Until you know which one it is, reinstalling the whole plugin from wordpress.org is better than uploading the single file, because it makes sure every file is complete and the checksum stays clean.
Let us know what happens with auto-updates off for one night. That one result will point at the cause.
Hi Dear users,
Thank you for providing the information above.
We’ve forwarded your case to our development team, and they are currently reviewing the issue.
We’ll keep you updated as soon as we receive feedback or further recommendations from our developers.
We appreciate your patience and understanding while we look into this.
Kind Regards,
Mej, Widget Options TeamHello all,
Our hosting team was able to find the source of why this file was being removed, looks to be a malware signature hit was removing it nightly. See their message below:
7 2026/11/12 /home/##########.###/html/wp-content/plugins/widget-options/includes/snippets/class-snippets-admin.php /chroot/quarantine/class-snippets-admin.php.180365840The file was flagged with the following malware signature: “php.backdoor.evalinput.generic.21”. This explains why the file keeps disappearing from the plugin directory. It is being quarantined by the server-side malware scanner following repeated detection, rather than simply being removed by a failed WordPress automatic update. I recommend having your website developer review the Widget Options plugin and investigate the flagged file to determine whether it has been compromised. Please avoid repeatedly restoring the flagged file without first verifying its integrity. Once the plugin files have been reviewed and the underlying issue addressed, the plugin can be restored using a clean, verified copy.
@icsam, I saw your message and want to add the relevant note here that our hosting provider is Nexcess as well, so that may be another common link as to what is happening here, if their malware scanner is specifically flagging this file here.
They also stated they did not see anything out of the ordinary or could find any reason why that file didn’t exist, and didn’t share findings from the malware scanner until I asked specifically if their malware scanner was the culprit.
@telloyana and @icsam – My host is also Nexcess. I’ve asked them if their malware scanner is the issue, but I’m still waiting for their reply.
You must be logged in to reply to this topic.