Conversation
supportHi there In my debug.log I have found this error connected to wePOS – how can it be fixed please? The other plugins like “WooCommerce” and “Google Listings and Ads” are up to date, however, the last update from wePOS is already 5 months old. Thank you, Michael [30-May-2025 10:04:47 UTC] PHP Fatal error: Uncaught TypeError: Automattic\WooCommerce\GoogleListingsAndAds\Integration\WPCOMProxy::prepare_response(): Argument #3 ($request) must be of type WP_REST_Request, array given, called in /wp-includes/class-wp-hook.php on line 324 and defined in /wp-content/plugins/google-listings-and-ads/src/Integration/WPCOMProxy.php:329 Stack trace: #0 /wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\GoogleListingsAndAds\Integration\WPCOMProxy->prepare_response(Object(WP_REST_Response), Object(WC_Product_Variation), Array) #1 /wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php(185): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variation), Array) #3 /wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(143): WC_REST_Product_Variations_Controller->prepare_object_for_response(Object(WC_Product_Variation), Array) #4 /wp-content/plugins/wepos/includes/REST/Manager.php(78): WC_REST_CRUD_Controller->get_item(Array) #5 /wp-includes/class-wp-hook.php(324): WeDevs\WePOS\REST\Manager->product_response(Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #6 /wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #7 /wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(186): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #8 /wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(405): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST_Request)) #9 /wp-includes/rest-api/class-wp-rest-server.php(1292): WC_REST_CRUD_Controller->get_items(Object(WP_REST_Request)) #10 /wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc/v3/products', Array, NULL) #11 /wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request)) #12 /wp-includes/rest-api.php(459): WP_REST_Server->serve_request('/wc/v3/products') #13 /wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP)) #14 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #15 /wp-includes/plugin.php(565): WP_Hook->do_action(Array) #16 /wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array) #17 /wp-includes/class-wp.php(818): WP->parse_request('') #18 /wp-includes/functions.php(1342): WP->main('') #19 /wp-blog-header.php(16): wp() #20 /index.php(17): require('/home/huvexuvi/...') #21 {main} thrown in /wp-content/plugins/google-listings-and-ads/src/Integration/WPCOMProxy.php on line 329
Hello @michih , We would like to inform you that we have not identified such any issues locally. Therefore, we assume that this error may be occurring due to a conflict with other plugins or themes on your site. To address this, we recommend taking your site to a minimal state and observing if the problem persists. Here are the steps you can follow: Deactivate all plugins except wePOS Lite and WooCommerce . Switch to a stable theme, such as Storefront . Clear your site cache as well as the browser cache, and then try again. In case the issue is resolved, it indicates that there is a conflicting plugin or theme installed on your website. To identify the responsible plugin/theme, it is recommended to carry out a thorough conflict test. You can refer to this third-party article for assistance in tracing the problematic plugin/theme. Once you have determined the conflicting plugin/theme, please reach out to the relevant support team for further assistance. Thanks!
Hi @fayeakuzzaman Thanks for your reply. I will check on a staging environment shortly and let you know how it goes. Best, Michael
Hi @fayeakuzzaman So here is the update: I have deactivated several plugins on my staging environment. Activated them again one by one to see which plugins causes the URL /wepos#/ from loading the products. Identified this plugin causing the issue: https://wordpress.org/plugins/google-listings-and-ads/ (if activated, products will not show in POS but as soon as disabled, it works properly). I will reach out to them as well to see how this issue can be fixed. Thanks a lot Michael
Hey team. We’ve done some additional testing for @michih , and it looks like a breaking bit of code was implemented somewhere in version 2.6.1 of Google for WooCommerce. The search functionality works in 2.6.0. Does this help with the investigation? I’ve also flagged this with on the Google for WooCommerce ticket: https://wordpress.org/support/topic/plugin-conflict-identified-with-pos-solution-and-woo-app/#post-18505013 A fix will likely also resolve the issues experienced for @estela24 here: https://wordpress.org/support/topic/wepos-incompatible-with-google-shopping/ For now, rolling back to Google for WooCommerce (Google Listing and Ads) version 2.6.0 is the only workaround available.
Resolved.
Hello @michih , We would like to inform you that we have not identified such any issues locally. Therefore, we assume that this error may be occurring due to a conflict with other plugins or themes on your site. To address this, we recommend taking your site to a minimal state and observing if the problem persists. Here are the steps you can follow: Deactivate all plugins except wePOS Lite and WooCommerce . Switch to a stable theme, such as Storefront . Clear your site cache as well as the browser cache, and then try again. In case the issue is resolved, it indicates that there is a conflicting plugin or theme installed on your website. To identify the responsible plugin/theme, it is recommended to carry out a thorough conflict test. You can refer to this third-party article for assistance in tracing the problematic plugin/theme. Once you have determined the conflicting plugin/theme, please reach out to the relevant support team for further assistance. Thanks!
Hi @fayeakuzzaman Thanks for your reply. I will check on a staging environment shortly and let you know how it goes. Best, Michael
Hi @fayeakuzzaman So here is the update: I have deactivated several plugins on my staging environment. Activated them again one by one to see which plugins causes the URL /wepos#/ from loading the products. Identified this plugin causing the issue: https://wordpress.org/plugins/google-listings-and-ads/ (if activated, products will not show in POS but as soon as disabled, it works properly). I will reach out to them as well to see how this issue can be fixed. Thanks a lot Michael
Hey team. We’ve done some additional testing for @michih , and it looks like a breaking bit of code was implemented somewhere in version 2.6.1 of Google for WooCommerce. The search functionality works in 2.6.0. Does this help with the investigation? I’ve also flagged this with on the Google for WooCommerce ticket: https://wordpress.org/support/topic/plugin-conflict-identified-with-pos-solution-and-woo-app/#post-18505013 A fix will likely also resolve the issues experienced for @estela24 here: https://wordpress.org/support/topic/wepos-incompatible-with-google-shopping/ For now, rolling back to Google for WooCommerce (Google Listing and Ads) version 2.6.0 is the only workaround available.
Resolved.