MSW MU Watchdog

R0.00

🛡️ MSW MU Watchdog – Wordpress Plugin

Author: MySimpleWebsite.co.za
Purpose:
Automatically disable plugins that cause fatal PHP errors during activation, keeping the site online and logging what went wrong.

Category:

Description

🛡️ MSW MU Watchdog

Author: MySimpleWebsite.co.za
Purpose:
Automatically disable plugins that cause fatal PHP errors during activation, keeping the site online and logging what went wrong.


🖥️ Server & PHP Requirements

Requirement Minimum
PHP Version 7.2+
Error Handling register_shutdown_function() enabled
File System Write access to database (options table)
Memory Limit 64 MB
Cron ❌ Not required

⚠️ Requires PHP fatal errors to not be suppressed


🧩 WordPress Requirements

Requirement Version
WordPress 5.2+ (Recovery Mode compatible)
Multisite Supported
MU Plugins Required

⚙️ How It Works

  • Loads before all plugins as a MU-plugin

  • Records the last activated plugin

  • Registers a shutdown handler

  • On fatal error:

    1. Identifies offending plugin

    2. Deactivates it automatically

    3. Logs crash details

Crash logs stored in:

wp_options → msw_mu_watchdog_logs

📍 Where You Use It

  • No UI

  • Runs silently in the background

  • Logs viewable via database or future admin UI


🧾 What Gets Logged

  • Timestamp

  • Plugin file

  • Error message

  • File + line number

  • User ID

  • Request URI


✅ Benefits

  • Prevents white-screen lockouts

  • Eliminates FTP emergency fixes

  • Enables safe plugin testing

  • Complements WordPress Recovery Mode

You may also like…