ScubaGPT Safety Guardrails – Quick Reference
ScubaGPT Safety Guardrails – Quick Reference
🎯 What It Does
Prevents the ScubaGPT plugin from ever crashing your WordPress site, no matter what goes wrong.
🚨 Error Types You Might See
1. “Failed to Load”
Cause: Missing or corrupted plugin files
Solution: Re-upload complete plugin package
Site Impact: None – site works normally
2. “Activation Failed”
Cause: PHP version, WordPress version, or missing extensions
Solution: Check requirements notice, upgrade if needed
Site Impact: None – site works normally
3. “Emergency Shutdown”
Cause: Plugin had 3 fatal errors
Solution: Click “Clear Errors and Reset”, then reinstall
Site Impact: None – plugin auto-disabled itself
4. “Health Check Warning”
Cause: Auto-repair couldn’t fix an issue
Solution: Follow instructions in notice
Site Impact: Minimal – plugin may have reduced functionality
⚡ Quick Recovery Steps
If Plugin Won’t Activate
- Read the error message carefully
- Check system requirements:
- PHP 8.0 or higher
- WordPress 6.0 or higher
- Required extensions: curl, json, mbstring, mysqli
- Re-upload complete plugin package if files missing
- Try activating again
If Emergency Shutdown Triggered
- Note the error details shown
- Click “Clear Errors and Reset” button
- Delete plugin folder
- Upload fresh plugin package
- Activate again
If Health Warning Appears
- Read list of issues
- Dismiss notice if issues are warnings only
- For critical issues, reinstall plugin
- Check WordPress error logs for details
🔧 Admin Tools
Clear Errors Button
Location: Emergency Shutdown notice
What It Does: Resets all error counters and stored errors
When To Use: Before attempting to reactivate after emergency shutdown
Dismiss Button
Location: Most warning notices
What It Does: Hides the notice
When To Use: After reading and noting the information
📊 System Requirements
| Requirement | Minimum | Checked At |
|---|---|---|
| PHP Version | 8.0 | Activation |
| WordPress Version | 6.0 | Activation |
| PHP Extensions | curl, json, mbstring, mysqli | Activation |
| Memory Limit | 64MB | Activation |
| Upload Directory | Writable | Activation |
| Critical Files | All present | Activation + Hourly |
| Database Tables | All created | Activation + Hourly |
🔍 Behind The Scenes
What Runs Automatically
On Activation:
- ✅ System requirements check
- ✅ File validation
- ✅ Database table creation
- ✅ Table verification
Every Hour (while plugin active):
- ✅ Critical files check
- ✅ Database tables check
- ✅ Auto-repair if issues found
On Every Page Load:
- ✅ Fatal error detection (only if error occurs)
On Plugin Deactivation:
- ✅ Error counter reset
📝 Options Stored
The plugin stores error information in WordPress options:
scubagpt_activation_status– Current statusscubagpt_error_count– Fatal error counterscubagpt_fatal_error– Last fatal error detailsscubagpt_emergency_shutdown– Shutdown reasonscubagpt_health_issues– Current health problems
Cleared by: “Clear Errors and Reset” button
⚠️ What To Do If…
Site Shows White Screen
This should never happen with safety guardrails, but if it does:
- Access site via FTP/SSH
- Rename plugin folder:
scubagpt-chatbot→scubagpt-chatbot-disabled - Site will immediately recover
- Check error logs
- Report issue with log details
Plugin Keeps Deactivating
Cause: Hitting 3 fatal errors repeatedly
Solution:
- Check error logs for actual error
- Fix underlying issue (usually hosting/environment)
- Clear errors
- Try clean install
Can’t Clear Errors
Rare, but possible if options won’t save:
- Via WP-CLI:
wp option delete scubagpt_activation_error
wp option delete scubagpt_emergency_shutdown
wp option delete scubagpt_fatal_error
wp option delete scubagpt_error_count
- Or via phpMyAdmin:
DELETE FROM wp_options WHERE option_name LIKE 'scubagpt_%error%';
📖 Full Documentation
Detailed Guide: PLUGIN-SAFETY-GUARDRAILS.md
Implementation Summary: SAFETY-GUARDRAILS-IMPLEMENTATION-SUMMARY.md
This File: SAFETY-GUARDRAILS-QUICK-REFERENCE.md
💡 Key Takeaways
- ✅ Your site is protected – Plugin cannot crash your WordPress site
- ✅ Clear error messages – You’ll always know what went wrong
- ✅ Easy recovery – One-click tools to fix most issues
- ✅ Automatic repairs – Many issues fix themselves
- ✅ No technical knowledge required – Step-by-step instructions provided
🆘 Need Help?
- Check error logs at
/wp-content/debug.log - Read the error message carefully – it contains specific instructions
- Try the suggested solution first
- Check full documentation in
PLUGIN-SAFETY-GUARDRAILS.md - Contact support with error log details if issue persists
Version: 1.1.0
Last Updated: January 7, 2026
Protection Level: Maximum
