WP-Debugger
The ultimate WordPress Rescue & Troubleshooting tool.
WP debugger & Rescue Tool
A powerful, single-file PHP emergency kit (wp-debugger.php) designed for developers and sysadmins to recover WordPress installations suffering from critical errors or to perform rapid maintenance tasks.
⚠️ IMPORTANT: Security Warning
This script provides deep access to the WordPress database and file system.
- Immediately change the password in the
TOOL_PASSWORDconstant at the top of the script. - Delete this script from the server as soon as your troubleshooting is complete.
- Use at your own risk. Always perform a backup before using bulk actions.
✨ Key Features
- One-Click Subdirectory to Root Move: Move a complete website from a subfolder to the root directory. The script automatically handles file relocation and updates the
siteurlandhomeoptions in the database. - DB Recovery: Update
wp-config.phpcredentials and fix connection strings. - Access Management: Instantly create a new admin user or reset existing passwords.
- Plugin & Theme Manager: Toggle problematic plugins or themes without dashboard access.
- Core Reinstall: Replace corrupted WordPress core files with a single click.
- System Tools: Clear LSCache/Object Cache, restore default
.htaccess, and fix file permissions (755 for dirs, 600 for wp-config). - Security Scan: Detect unauthorized PHP files in the
uploadsfolder (potential malware). - Search & Replace: Migrate database URLs with 'Dry Run' support.
🚀 Installation & Usage
- Download the file as
wp-debugger.php. - Upload it to the directory of your WordPress installation.
- Navigate to
yourdomain.com/wp-debugger.phpin your browser. - Log in using the password you defined in the script.
🛠 Configuration
Open the script and modify the following lines:
define('TOOL_PASSWORD', 'your-secure-password'); // Change this immediately!
define('DEFAULT_USER', 'support'); // Default admin username to be created