5.6 KiB
Troubleshooting
This guide provides solutions to common issues you might encounter when using or developing with this plugin.
Installation Issues
Plugin Installation Fails
Problem: The plugin fails to install in WordPress.
Solutions:
- Verify that your WordPress version meets the minimum requirement (5.0+)
- Check that your PHP version meets the minimum requirement (7.0+)
- Ensure the ZIP file is properly formatted and contains all required files
- Try installing the plugin manually by uploading the unzipped folder to the
wp-content/pluginsdirectory
Activation Error
Problem: You receive an error when activating the plugin.
Solutions:
- Check the error message for specific details
- Verify that all plugin dependencies are installed and activated
- Check your server's error logs for more information
- Temporarily deactivate other plugins to check for conflicts
Development Issues
Composer Dependencies
Problem: Composer fails to install dependencies.
Solutions:
- Verify that you have Composer installed and up to date
- Check that your PHP version meets the requirements for all dependencies
- Try clearing Composer's cache:
composer clear-cache - Run
composer install --verboseto see detailed error messages
NPM Dependencies
Problem: NPM fails to install dependencies.
Solutions:
- Verify that you have Node.js and NPM installed and up to date
- Try clearing NPM's cache:
npm cache clean --force - Delete the
node_modulesdirectory and runnpm installagain - Run
npm install --verboseto see detailed error messages
WordPress Environment (wp-env)
Problem: The WordPress environment fails to start.
Solutions:
- Verify that Docker is installed and running
- Check that the Docker daemon has enough resources allocated
- Try stopping and removing existing containers:
npm run wp-env stop && npm run wp-env clean - Run
npm run wp-env start --debugto see detailed error messages
Unit Tests
Problem: Unit tests are failing.
Solutions:
- Verify that you have PHPUnit installed and configured correctly
- Check that all dependencies are installed:
composer install - Run tests with verbose output:
./vendor/bin/phpunit --verbose - Check for syntax errors in your PHP files
End-to-End Tests
Problem: End-to-end tests are failing.
Solutions:
- Verify that the WordPress environment is running:
npm run start - Check that Cypress is installed correctly:
npx cypress verify - Run tests in interactive mode to debug:
npm run test:e2e - Check for issues with selectors or timing in your test scripts
Plugin Functionality Issues
Plugin Settings Not Saving
Problem: Changes to plugin settings are not being saved.
Solutions:
- Check for JavaScript errors in the browser console
- Verify that the settings form is submitting correctly
- Check that the WordPress nonce is being verified correctly
- Ensure that the user has the necessary permissions to save settings
Plugin Conflicts
Problem: The plugin conflicts with other plugins.
Solutions:
- Deactivate other plugins one by one to identify the conflict
- Check for JavaScript errors in the browser console
- Check for PHP errors in the server logs
- Contact the developers of both plugins to report the conflict
Performance Issues
Problem: The plugin is causing performance issues.
Solutions:
- Check if the plugin is making excessive database queries
- Verify that assets (CSS/JS) are being properly enqueued and minified
- Consider implementing caching for resource-intensive operations
- Use a profiling tool to identify bottlenecks
Update Issues
Update Fails
Problem: The plugin fails to update.
Solutions:
- Verify that your WordPress version meets the requirements for the new version
- Check that your PHP version meets the requirements for the new version
- Try updating manually by downloading the new version and replacing the old files
- Check for file permission issues on your server
Lost Settings After Update
Problem: Plugin settings are lost after updating.
Solutions:
- Check if the plugin includes a data migration process for updates
- Verify that the settings are being stored in the database correctly
- Restore settings from a backup if available
- Contact plugin support for assistance
Multisite Issues
Plugin Not Working on Multisite
Problem: The plugin doesn't work correctly on a multisite installation.
Solutions:
- Verify that the plugin is network activated if required
- Check that the plugin is compatible with multisite (it should be!)
- Ensure that the plugin has the necessary permissions on each site
- Check for multisite-specific settings or options
Getting Additional Help
If you're still experiencing issues after trying these troubleshooting steps:
- Check the Frequently Asked Questions for more information
- Search for similar issues in the GitHub Issues
- Create a new issue with detailed information about your problem
- Contact the plugin developers for direct support
Reporting Bugs
If you've identified a bug in the plugin:
- Go to the GitHub Issues page
- Click "New Issue"
- Select "Bug Report"
- Fill out the template with as much detail as possible
- Submit the issue
Please include:
- A clear description of the bug
- Steps to reproduce the issue
- Your environment details (WordPress version, PHP version, etc.)
- Any relevant error messages or screenshots