Title: critical error
Last modified: January 21, 2022

---

# critical error

 *  Resolved [jl925](https://wordpress.org/support/users/jl925/)
 * (@jl925)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/critical-error-293/)
 * I have been using WP-Optimize in different installations but I just installed
   it in a new website with wordpress version 5.8.3 I get every time I activate “
   critical error” … Plugin b wp-optimize/wp-optimize.php has been deactivated due
   to error: Plugin file does not exist. having to manually disable it to make the
   web work again.
    In my tests the same thing happens, even though it is the only
   active plugin
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-error-293%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/critical-error-293/#post-15276137)
 * [@jl925](https://wordpress.org/support/users/jl925/) Can you please enable debugging
   mode, Please add following lines to wp-config.php just before where it says: /*
   That’s all, stop editing! Happy publishing. */
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_DISPLAY', false );
       define( 'WP_DEBUG_LOG', true );
       ```
   
 * Then try to activate the plugin.
 * A debug.log file should be created inside wp-content folder,which should contain
   error information in it, Please share the file with us.
 *  Thread Starter [jl925](https://wordpress.org/support/users/jl925/)
 * (@jl925)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/critical-error-293/#post-15276172)
 * Thanks [@bornforphp](https://wordpress.org/support/users/bornforphp/),
    I just
   found the solution: The error occurs with version 8.1 of php. I went back to 
   php 7.2 and the problem is gone. It would be nice if it was checked for compatibility
   with php 8
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/critical-error-293/#post-15276188)
 * [@jl925](https://wordpress.org/support/users/jl925/) Yes the compatibility issue
   will be fixed in next release.
 * Meanwhile keep your php version to to 7.2

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘critical error’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/critical-error-293/#post-15276188)
 * Status: resolved