Title: Critical PHP Error
Last modified: March 11, 2025

---

# Critical PHP Error

 *  Resolved [Hans](https://wordpress.org/support/users/taufrisch88/)
 * (@taufrisch88)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/)
 *     ```wp-block-code
       Hi, I have regular errors caught by the Error logger (posted below).Maybe you can check them out? thank you
       ```
   
 * **Error #1**
   ·  **Error Level:** E_ERROR·  **Message:** Uncaught Error: Failed
   opening required ‘/home/server/public_html/[domain.ch/wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/abstract-wc-rest-wccom-site-controller.php’](http://litepack.ch/wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/abstract-wc-rest-wccom-site-controller.php')(
   include_path=’.’) in /home/server/public_html/[domain.ch/wp-content/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php:223](http://litepack.ch/wp-content/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php:223)
   Stack trace:#0 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
   324): WC_WCCOM_Site::register_rest_namespace(Array)#1 /home/server/public_html/
   [domain.ch/wp-includes/plugin.php](http://litepack.ch/wp-includes/plugin.php)(
   205): WP_Hook->apply_filters(Array, Array)#2 /home/server/public_html/[domain.ch/wp-content/plugins/woocommerce/includes/rest-api/Server.php](http://litepack.ch/wp-content/plugins/woocommerce/includes/rest-api/Server.php)(
   66): apply_filters(‘woocommerce_res…’, Array)#3 /home/server/public_html/[domain.ch/wp-content/plugins/woocommerce/includes/rest-api/Server.php](http://litepack.ch/wp-content/plugins/woocommerce/includes/rest-api/Server.php)(
   43): Automattic\WooCommerce\RestApi\Server->get_rest_namespaces()#4 /home/server/
   public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
   324): Automattic\WooCommerce\RestApi\Server->register_rest_routes(Object(WP_REST_Server))#
   5 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
   348): WP_Hook->apply_filters(NULL, Array)#6 /home/server/public_html/[domain.ch/wp-includes/plugin.php](http://litepack.ch/wp-includes/plugin.php)(
   517): WP_Hook->do_action(Array)#7 /home/server/public_html/[domain.ch/wp-includes/rest-api.php](http://litepack.ch/wp-includes/rest-api.php)(
   618): do_action(‘rest_api_init’, Object(WP_REST_Server))#8 /home/server/public_html/
   [domain.ch/wp-includes/rest-api.php](http://litepack.ch/wp-includes/rest-api.php)(
   442): rest_get_server()#9 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
   324): rest_api_loaded(Object(WP))#10 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
   348): WP_Hook->apply_filters(NULL, Array)#11 /home/server/public_html/[domain.ch/wp-includes/plugin.php](http://litepack.ch/wp-includes/plugin.php)(
   565): WP_Hook->do_action(Array)#12 /home/server/public_html/[domain.ch/wp-includes/class-wp.php](http://litepack.ch/wp-includes/class-wp.php)(
   418): do_action_ref_array(‘parse_request’, Array)#13 /home/server/public_html/
   [domain.ch/wp-includes/class-wp.php](http://litepack.ch/wp-includes/class-wp.php)(
   813): WP->parse_request(”)#14 /home/server/public_html/[domain.ch/wp-includes/functions.php](http://litepack.ch/wp-includes/functions.php)(
   1336): WP->main(”)#15 /home/server/public_html/[domain.ch/wp-blog-header.php](http://litepack.ch/wp-blog-header.php)(
   16): wp()#16 /home/server/public_html/[domain.ch/index.php](http://litepack.ch/index.php)(
   17): require(‘/home/server/…’)#17 {main}thrown·  **File:** /home/server/public_html/
   [domain.ch/wp-content/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php](http://litepack.ch/wp-content/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php)·**
   Line:** 223 ·  **Request:** /wp-json/google-site-kit/v1/modules/analytics-4/data/
   report?metrics%5B0%5D%5Bname%5D=screenPageViews&dimensions%5B0%5D%5Bname%5D=pagePath&
   dimensions%5B1%5D%5Bname%5D=pageTitle&startDate=2025-02-11&endDate=2025-03-10&
   dimensionFilters%5BcustomEvent%3Agooglesitekit_post_type%5D%5BfilterType%5D=stringFilter&
   dimensionFilters%5BcustomEvent%3Agooglesitekit_post_type%5D%5BmatchType%5D=EXACT&
   dimensionFilters%5BcustomEvent%3Agooglesitekit_post_type%5D%5Bvalue%5D=post&dimensionFilters%
   5BnewVsReturning%5D=returning&orderby%5B0%
 * **Error#2**
    - **Error Level:** E_ERROR
    - **Message:** Uncaught Error: Failed opening required ‘/home/server/public_html/
      [domain.ch/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php’](http://litepack.ch/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php')(
      include_path=’.’) in /home/server/public_html/[domain.ch/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php:102](http://litepack.ch/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php:102)
      
      Stack trace:#0 [internal function]: Automattic\Jetpack\Autoloader\jp67abb2f5c15b32a13611c55273717232\
      al5_0_0\PHP_Autoloader::load_class(‘WC_REST_Order_R…’)#1 /home/server/public_html/
      [domain.ch/wp-content/plugins/woocommerce/src/Proxies/LegacyProxy.php](http://litepack.ch/wp-content/plugins/woocommerce/src/Proxies/LegacyProxy.php)(
      52): method_exists(‘WC_REST_Order_R…’, ‘instance’)#2 /home/server/public_html/
      [domain.ch/wp-content/plugins/woocommerce/includes/rest-api/Server.php](http://litepack.ch/wp-content/plugins/woocommerce/includes/rest-api/Server.php)(
      48): Automattic\WooCommerce\Proxies\LegacyProxy->get_instance_of(‘WC_REST_Order_R…’)#
      3 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
      324): Automattic\WooCommerce\RestApi\Server->register_rest_routes(Object(WP_REST_Server))#
      4 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
      348): WP_Hook->apply_filters(NULL, Array)#5 /home/server/public_html/[domain.ch/wp-includes/plugin.php](http://litepack.ch/wp-includes/plugin.php)(
      517): WP_Hook->do_action(Array)#6 /home/server/public_html/[domain.ch/wp-includes/rest-api.php](http://litepack.ch/wp-includes/rest-api.php)(
      618): do_action(‘rest_api_init’, Object(WP_REST_Server))#7 /home/server/public_html/
      [domain.ch/wp-includes/rest-api.php](http://litepack.ch/wp-includes/rest-api.php)(
      442): rest_get_server()#8 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
      324): rest_api_loaded(Object(WP))#9 /home/server/public_html/[domain.ch/wp-includes/class-wp-hook.php](http://litepack.ch/wp-includes/class-wp-hook.php)(
      348): WP_Hook->apply_filters(NULL, Array)#10 /home/server/public_html/[domain.ch/wp-includes/plugin.php](http://litepack.ch/wp-includes/plugin.php)(
      565): WP_Hook->do_action(Array)#11 /home/server/public_html/[domain.ch/wp-includes/class-wp.php](http://litepack.ch/wp-includes/class-wp.php)(
      418): do_action_ref_array(‘parse_request’, Array)#12 /home/server/public_html/
      [domain.ch/wp-includes/class-wp.php](http://litepack.ch/wp-includes/class-wp.php)(
      813): WP->parse_request(”)#13 /home/server/public_html/[domain.ch/wp-includes/functions.php](http://litepack.ch/wp-includes/functions.php)(
      1336): WP->main(”)#14 /home/server/public_html/[domain.ch/wp-blog-header.php](http://litepack.ch/wp-blog-header.php)(
      16): wp()#15 /home/server/public_html/[domain.ch/index.php](http://litepack.ch/index.php)(
      17): require(‘/home/server/…’)#16 {main}thrown
    - **File:** /home/server/public_html/[domain.ch/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php](http://litepack.ch/wp-content/plugins/woocommerce/vendor/jetpack-autoloader/class-php-autoloader.php)
    - **Line:** 102
    - **Request:** /wp-json/google-site-kit/v1/modules/pagespeed-insights/data/pagespeed?
      strategy=desktop&url=https%3A%2F%[2Fdomain.ch](http://2Flitepack.ch)%2F&_locale
      =user
    - **Referrer:** https%3A%2F%[2Fdomain.ch](http://2Flitepack.ch)%2Fwp-admin%2Fadmin.
      php%3Fpage%3Dgooglesitekit-dashboard
    - **User ID**: 1
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-php-error-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18354969)
 * Thanks for reaching out and sharing the error details [@taufrisch88](https://wordpress.org/support/users/taufrisch88/).
   While I can see some WooCommerce Analytics related errors, these may indeed be
   based on dimensions or other configurations applied from Site Kit. While I check
   this with the team, please share the following:
    1. Have you noticed any errors or unexpected functionality on the Site Kit dashboard
       from the time whereby you noticed these errors?
    2. If you clear your PHP error log, and then visit the Site Kit dashboard once 
       more, along with any WooCommerce related dashboards with your site traffic, 
       do you then see further errors appearing?
 * Let me know if you have any questions with the above. Thank you.
 *  Thread Starter [Hans](https://wordpress.org/support/users/taufrisch88/)
 * (@taufrisch88)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18357575)
 * Dear James, Thank you for your reply. I very much appreciate that.
   1)Yes, the
   Dashboard often do not load, and shows red error button “retry”. 2)I cleared 
   PHP log, and opened Site Kit Dashboard. The mentioned error still occurs. But
   you are right, it’s maybe related to analytics. It’s quite hard for me to analyze
   these messages. I will follow your instructions to upload the site info to your
   google form.Many thanks!
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18359410)
 * Thanks for the update. Given it sounds like these errors may be related to the
   issue as described in your [other support topic](https://wordpress.org/support/topic/sitekit-data-no-loading/#post-18359316),
   please share the information required there and we can try determine more on 
   this.
 * It may also be worth checking does the same occur if you attempt Site Kit setup
   and view the dashboard from [this disposable WordPress site](https://tastewp.org/plugins/google-site-kit/)?
   This will help indicate a possible host related issue if all works fine from 
   here, while also ruling out local or browser related issues. 
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18374681)
 * I’m just following up with you to check whether the error remains? If so please
   share the information requested above and we can investigate further.
 *  Thread Starter [Hans](https://wordpress.org/support/users/taufrisch88/)
 * (@taufrisch88)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18378438)
 * Dear [@jamesosborne](https://wordpress.org/support/users/jamesosborne/)
 * Currently it’s stable and calm. Figures are loading and I do not receive PHP 
   errors!
   I am really sorry I can provide really useful information. Its quite 
   outside my knowhow.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18378589)
 * Glad to hear it [@taufrisch88](https://wordpress.org/support/users/taufrisch88/),
   and appreciate the update. No worries about not being able to share more insights.
   I will check this with the team. For additional insights, please [share your Site Health information](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
   so I can check your plugin settings.
 * There may have been some conflicting configurations or events that impacted these
   errors, or even a network related temporary issue, however, as long as Site Kit
   remains functioning as expected, this is hopefully nothing of concern. I will
   let you know should I find out more.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18379038)
 * Just to let you know that we received your Site Health information. Many thanks.
   I’ll check this with the team and report back to you here should I have any updates.
   I can see that you’re using one of the latest versions of PHP, and it’s possible
   some of the errors may be related to this.
 * I’ll let you know when I have an update. Please do also let me know if you encounter
   any loss of Site Kit functionality. Hopefully the errors you reported were temporary.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18393588)
 * Just to update you on this, we checked this and didn’t see anything obvious that
   related to Site Kit. If you do encounter any loss of functionality with Site 
   Kit active, or you do see any Site Kit references, let us know and we can investigate
   further. Thank you.

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

The topic ‘Critical PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

## Tags

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

 * 10 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/critical-php-error-3/#post-18393588)
 * Status: resolved