Free Rescue Script by DrGlenn

DrGlenn WP Repair

Stuck with “There has been a critical error,” a white screen, or a suspected hack? This single-file toolkit helps you recover WordPress without logging into wp-admin.

Overview

DrGlenn WP Repair is a pragmatic rescue utility you upload to your WordPress root when things go sideways. It helps diagnose and fix common blockers—permissions, broken plugins, DB issues, stale rules—so you can get back into the dashboard and finish cleanup.

Use on demand, then remove it after recovery for best security hygiene.

Why It’s Useful

No wp-admin access needed Safe defaults One file

  • Works when wp-admin is inaccessible or fatal errors block login.
  • Targets the usual suspects: DB corruption, perms, plugin conflicts, broken rewrites, memory limits.
  • Gives you fast, reversible changes with clear actions.

Script Functions

Core Repairs

  • Reset File/Directory Permissions: Files → 0644, Folders → 0755.
  • Repair Database: Attempts to repair tables (back up first).
  • Reset .htaccess & Update Permalinks: Restores defaults, tightens rules, refreshes pretty links.
  • Disable All Plugins: Deactivates active plugins to isolate conflicts.

Diagnostics & Cleanup

  • Enable Debugging: Turns on WP_DEBUG to surface errors.
  • Optimize Database: Optimizes tables for better performance.
  • Delete Transients: Clears stale cached options.
  • Clean Up Revisions: Removes post revisions to trim DB size.
  • Align Memory Limits: Sets WordPress memory to match PHP’s limit where possible.

Download & Installation

  1. Download the zip: drglenn-repair.zip
  2. Unzip locally.
  3. Upload the files to the WordPress root via FTP or your host’s file manager.
  4. Open in a browser: https://yourwebsite.com/drglenn-wp-repair.php
  5. Whitelist your IP when prompted.
  6. Run one action at a time and re-test your site in another tab.
Tip: After you regain access, delete the repair script from your server.

Usage Notes

  • Keep reliable offsite backups before making changes.
  • If a repair helps partially, try the next most relevant action (e.g., disable plugins → reset permalinks).
  • If you suspect a hack, pair repairs with a full malware scan and password resets.

Download

Start recovery now—then secure and clean up.

Disclaimer: This script is provided free of charge without any warranty or claims of fitness. Use at your own risk. Maintain current backups and follow a comprehensive security program.

© 2024–2025 DrGlenn. All Rights Reserved.
Visit fixmyhackedwebsite.com for professional help.