Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/namiokuzono/wc-role-health/archive/refs/heads/main.zipA comprehensive diagnostic and repair tool for WooCommerce permission issues, missing admin menus, and corrupted user roles.
🚨 Problem This Solves
Have you ever encountered these frustrating WooCommerce issues?
- ❌ WooCommerce admin menu completely missing from WordPress dashboard
- ❌ "Sorry, you are not allowed to access this page" errors for WooCommerce settings
- ❌ Fatal errors when activating WooCommerce plugin
- ❌ Admin users losing WooCommerce access after plugin/theme changes
- ❌ Permission corruption causing complete WooCommerce lockout
This plugin diagnoses and fixes these complex issues automatically.
✨ Features
🔍 Comprehensive Health Checks
- WooCommerce Plugin Status - Verifies plugin activation and core class availability
- User Roles & Capabilities - Checks for missing administrator role and essential permissions
- Database Integrity - Validates essential WordPress and WooCommerce tables
- Admin Menu Detection - Identifies missing WooCommerce admin menus
- User Meta Corruption - Detects corrupted user capability metadata
- Plugin Conflict Detection - Identifies known problematic plugins
- Custom Code Interference - Scans theme files for menu-blocking code
- File Permission Validation - Checks basic file system permissions
🛠️ Automated Repair Tools
- Role Restoration - Recreate missing administrator role
- Capability Repair - Fix corrupted user capabilities and permissions
- Database Recovery - Recreate missing WooCommerce tables
- Permission Reset - Reset user roles and permissions to defaults
- Emergency Access - Create emergency admin user for complete lockouts
🚑 Emergency Features
- Nuclear Permission Repair - Complete role system reset for extreme cases
- Emergency Recovery URL - Direct access via URL parameter when locked out
- System Backup - Automatic backup before applying major fixes
- Detailed Logging - Track all fixes and changes applied
📋 Requirements
- WordPress: 5.0 or higher
- WooCommerce: 5.0 or higher (for WooCommerce-specific features)
- PHP: 7.4 or higher
- User Role: Administrator access required
🚀 Installation
Method 1: Manual Installation
- Download the plugin files
- Upload to
/wp-content/plugins/woocommerce-role-permission-health-check/ - Activate the plugin through the 'Plugins' menu in WordPress
- Navigate to Tools > WC Role Health to access the diagnostic tool
Method 2: Upload via WordPress Admin
- Download the plugin ZIP file
- Go to Plugins > Add New > Upload Plugin
- Choose the ZIP file and click Install Now
- Activate the plugin
📖 Usage
Basic Health Check
- Go to Tools > WC Role Health in your WordPress admin
- Click "Run Health Check" to scan for issues
- Review the diagnostic results
- Click "Apply Fixes" if issues are found
Emergency Recovery
If you're completely locked out of WooCommerce:
- Add
?wc_emergency_recovery=trueto any admin URL - The plugin will attempt automatic permission repair
- Check Tools > WC Role Health after recovery
Advanced Options
- Nuclear Permission Repair - Use for severe corruption cases
- Emergency Admin Creation - Creates new admin user if needed
- System Information Export - Generate detailed diagnostic report
🔧 What Gets Fixed
Common Issues Resolved:
- ✅ Missing WooCommerce admin menu
- ✅ "Not authorized" errors for admin users
- ✅ Corrupted user capability metadata
- ✅ Missing administrator role
- ✅ Incomplete WooCommerce permissions
- ✅ Database table corruption
- ✅ Plugin conflict interference
- ✅ Theme code blocking admin access
Real-World Success Stories:
This plugin was specifically designed to solve complex cases like:
- WooCommerce menu disappeared after plugin conflicts
- Admin users suddenly losing all WooCommerce access
- Fatal errors preventing WooCommerce reactivation
- Permission corruption after hosting migrations
- Access issues after developer handoffs
⚠️ Safety Features
- Automatic Backups - Creates backup before major changes
- Safe Mode Operation - Won't break existing functionality
- Detailed Logging - Tracks every change made
- Rollback Capability - Can restore previous state if needed
- Non-Destructive Scans - Diagnostic mode doesn't modify anything
🔒 Security Considerations
- Only users with
manage_optionscapability can use this plugin - All AJAX requests are nonce-protected
- Emergency features require additional verification
- Sensitive operations are logged for audit trails
🆘 Emergency Situations
Complete WooCommerce Lockout:
- Access:
yoursite.com/wp-admin/?wc_emergency_recovery=true - Plugin will attempt automatic recovery
- New emergency admin user may be created if needed
Can't Access WordPress Admin:
- Add plugin files via FTP
- Use emergency recovery URL
- Check hosting control panel for database access
wordpress woocommerce permissions user-roles admin-menu debugging repair-tool plugin-conflicts emergency-recovery capability-management
Made with ❤️ for the WordPress community
This plugin was created to solve real-world WooCommerce permission nightmares that standard troubleshooting can't fix.