Title: Clear Cache fixed PHP Fatal Errors
Last modified: May 16, 2023

---

# Clear Cache fixed PHP Fatal Errors

 *  Resolved [George wp-website-mastery](https://wordpress.org/support/users/lernerconsult/)
 * (@lernerconsult)
 * [3 years ago](https://wordpress.org/support/topic/clear-cache-fixed-php-fatal-errors/)
 * WooCommerce Payments updated successfully from version 5.7.0 to version 5.8.1
 * WooCommerce updated successfully from version 7.5.1 to version 7.7.0
 *     ```wp-block-code
       PHP Fatal error: Uncaught Error: Call to undefined method WC_Payments_Onboarding_Service::is_test_mode_enabled()
       ```
   
 * and
 *     ```wp-block-code
       PHP Fatal error: Uncaught Error: Class "Automattic\Jetpack\Autoloader\jp9630bcd590188630cdfedae109fd5064\Hook_Manager" not found
       ```
   
 * What worked to fix the errors?
 * In the hosting company’s control area, restart PHP and **Invalidate Page Cache**
   and **Invalidate CDN Cache**.
 * Had deleted the plugins to confirm the problem. After invalidating the caches,
   reinstalling the plugins (the exact versions that had given errors minutes before)
   worked just fine.
 * The problem was not plugins. The problem was the cache not updating when the 
   plugin versions changed.

Viewing 1 replies (of 1 total)

 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [3 years ago](https://wordpress.org/support/topic/clear-cache-fixed-php-fatal-errors/#post-16747114)
 * Hi [@lernerconsult](https://wordpress.org/support/users/lernerconsult/)
 * Thanks for reaching out!
 * I understand that you encountered PHP Fatal errors after updating WooCommerce
   Payments and WooCommerce, and you managed to fix the errors by restarting PHP,
   invalidating Page Cache and CDN Cache, and reinstalling the plugins. I’m glad
   to hear that you were able to resolve the issue.
 * You’re correct in your assessment that the problem was not with the plugins themselves,
   but rather with the cache not updating when the plugin versions changed. When
   updating plugins, it’s essential to clear the cache to ensure that the latest
   version of the plugin files are being used. This helps prevent errors and ensures
   optimal performance.
 * Meanwhile, I will be marking this thread as resolved. Should you have further
   inquiries, kindly [create a new topic here](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Clear Cache fixed PHP Fatal Errors’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [PHP Fatal error](https://wordpress.org/support/topic-tag/php-fatal-error/)
 * [server cache](https://wordpress.org/support/topic-tag/server-cache/)

 * 1 reply
 * 2 participants
 * Last reply from: [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/clear-cache-fixed-php-fatal-errors/#post-16747114)
 * Status: resolved