If enabling minify in WP-Optimize causes your website to crash and display a “There has been a critical error on this website” message, follow these steps to troubleshoot and resolve the issue:
- Disable Other Optimization Plugins:
- Ensure no other caching or minification plugins are active, as they may conflict with WP-Optimize.
- Increase Memory Limit:
- Increase the memory limit in your
wp-config.php
file by adding or updating the following line: define('WP_MEMORY_LIMIT', '256M');
- Enable Debug Mode:
- Enable WordPress debug mode to get more details about the error. Add or update the following lines in your
wp-config.php
file:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
- Check the
wp-content/debug.log
file for detailed error messages.
- Check for Theme or Plugin Conflicts:
- Temporarily switch to a default WordPress theme (like Twenty Twenty-One) and deactivate all other plugins except WP-Optimize. If the problem is resolved, reactivate your theme and plugins one by one to identify the conflict.
- Clear Cache:
- Clear any existing cache, including browser cache and server-side cache (if using a service like Cloudflare).
If these steps do not resolve the issue, please provide the debug log details for further assistance.