Stopping WordPress plugins disappearing from the admin page
Sometimes WordPress plugins may suddenly disappear from the Plugins section in the admin dashboard. This usually indicates a deeper issue with your site. On ruachost.com, you can identify the cause and restore your plugins by following these steps.
Why Do Plugins Disappear?
Section titled “Why Do Plugins Disappear?”-
Site Compromise (Most Common Cause)
Section titled “Site Compromise (Most Common Cause)”- If your site has been hacked, malicious code may be injected into plugin files.
- WordPress checks plugin metadata when you install, update, or delete a plugin. If metadata is missing or corrupted, WordPress removes the plugin from the list.
-
Code Injection Exploits
Section titled “Code Injection Exploits”- Hackers often inject malicious code into plugin files.
- This code may spread to other PHP files across your site.
- Infected files can send spam, advertise hacker groups, or even launch DDoS attacks.
-
Metadata Corruption
Section titled “Metadata Corruption”- Each plugin requires a header comment with details like name, version, and author.
- If this metadata is altered or missing, WordPress hides the plugin from the admin page.
How to Fix the Issue
Section titled “How to Fix the Issue”1. Confirm the Problem
Section titled “1. Confirm the Problem”- Check if plugins are missing from the Plugins menu.
- Review your site for unusual behavior (spam emails, redirects, slow performance).
2. Clean Up After a Hack
Section titled “2. Clean Up After a Hack”-
Follow standard cleanup procedures:
- Back up your site.
- Scan files with a security plugin (e.g., Wordfence, Sucuri).
- Remove malicious code from infected files.
- Replace compromised plugins/themes with fresh copies.
3. Restore Plugin Metadata
Section titled “3. Restore Plugin Metadata”-
Ensure each plugin’s main file contains the required header comment:
/*Plugin Name: Example PluginPlugin URI: https://example.comDescription: Short description of the pluginVersion: 1.0Author: Author NameAuthor URI: https://author-site.com*/ -
If metadata is missing, WordPress will not display the plugin.
4. Harden Your Site
Section titled “4. Harden Your Site”- Update WordPress, plugins, and themes regularly.
- Use strong passwords and two‑factor authentication.
- Install a firewall plugin to block suspicious activity.
- Regularly back up your site to restore quickly if compromised.