🟢 Beginner
⏱️ 10 min read
📦 Core / Pro
🗓️ December 15, 2025
⏱️ 10 min read
📦 Core / Pro
🗓️ December 15, 2025
📌 What You’ll Learn
- How to fix plugin installation failures
- How to resolve activation errors
- How to troubleshoot dependency issues
- How to enable debug mode for diagnostics
Issue 1: Plugin Won’t Install
Symptoms
- Plugin doesn’t appear in search results
- “Install Now” button grayed out
- Upload fails with timeout error
Solutions
Solution 1: Check Permissions
// Verify you have admin access
current_user_can('install_plugins') // Should return true
Solution 2: Increase PHP Limits
Add to wp-config.php:
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M');
Solution 3: Manual Installation
- Download plugin ZIP from WordPress.org
- Upload via FTP to
/wp-content/plugins/ - Extract the ZIP file
- Activate from Plugins page
Issue 2: Activation Fails
Symptoms
- White screen after activation
- Error: “Plugin requires PHP 7.4+”
- “Headers already sent” warning
Solutions
Check PHP Version
// Check at Tools → Site Health → Info → Server
PHP Version: Must be 7.4 or higher
Clear Output Before Headers
Check for whitespace or BOM in wp-config.php
Disable Conflicting Plugins
- Deactivate all other plugins
- Activate Attributes User Access
- Reactivate other plugins one by one
- Identify conflicts
Issue 3: Dependencies Not Met
Solutions
| Requirement | Minimum | Recommended |
|---|---|---|
| WordPress | 5.8 | 6.4+ |
| PHP | 7.4 | 8.0+ |
| MySQL | 5.6 | 8.0+ |
| Memory | 128MB | 256MB+ |
Issue 4: Database Errors
Common Errors
- “Error establishing database connection”
- “Table doesn’t exist”
- “Cannot create table”
Solutions
Verify Database Credentials
Check wp-config.php:
define('DB_NAME', 'your_database');
define('DB_USER', 'your_username');
define('DB_PASSWORD', 'your_password');
define('DB_HOST', 'localhost');
Recreate Tables
- Deactivate plugin
- Delete plugin folder
- Reinstall fresh copy
- Activate again
Enabling Debug Mode
Add to wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('SCRIPT_DEBUG', true);
Check logs at: wp-content/debug.log
Common Error Messages
Error: “Missing required PHP extension: curl”
Solution: Enable PHP cURL extension via hosting control panel
Error: “Plugin generated X characters of unexpected output”
Solution: Check for echo/print statements or whitespace in plugin files
Error: “Fatal error: Cannot redeclare function”
Solution: Another plugin defines same function. Contact support for compatibility patch
Prevention Tips
- ✅ Always backup before installing plugins
- ✅ Test on staging site first
- ✅ Keep WordPress and plugins updated
- ✅ Use quality hosting with adequate resources
- ✅ Monitor error logs regularly
📚 Related Articles
- System Requirements Explained
- Debug Mode Instructions
- Plugin Conflicts Resolution
- Performance Optimization