REST API ERROR with WCFM
-
Hi,
please let me know if this still was the issue with WCFM?2021-04-15T16:27:15+00:00 CRITICAL Uncaught Error: Call to undefined method WP_Error::get_data() in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php:148 Stack trace: #0 /home/u7544453/public_html/staging/wp-includes/class-wp-hook.php(287): WC_POS_APIv2_Products->product_response(Object(WP_Error), Object(WC_Product_Variable), Object(WP_REST_Request)) #1 /home/u7544453/public_html/staging/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(189): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #3 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(362): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php on line 148 2021-04-15T16:30:50+00:00 CRITICAL Uncaught Error: Call to undefined method WP_Error::get_data() in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php:148 Stack trace: #0 /home/u7544453/public_html/staging/wp-includes/class-wp-hook.php(287): WC_POS_APIv2_Products->product_response(Object(WP_Error), Object(WC_Product_Variable), Object(WP_REST_Request)) #1 /home/u7544453/public_html/staging/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(189): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #3 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(362): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php on line 148 2021-04-15T16:32:18+00:00 CRITICAL Uncaught Error: Call to undefined method WP_Error::get_data() in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php:148 Stack trace: #0 /home/u7544453/public_html/staging/wp-includes/class-wp-hook.php(287): WC_POS_APIv2_Products->product_response(Object(WP_Error), Object(WC_Product_Variable), Object(WP_REST_Request)) #1 /home/u7544453/public_html/staging/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(189): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #3 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(362): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php on line 148 2021-04-15T16:34:02+00:00 CRITICAL Uncaught Error: Call to undefined method WP_Error::get_data() in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php:148 Stack trace: #0 /home/u7544453/public_html/staging/wp-includes/class-wp-hook.php(287): WC_POS_APIv2_Products->product_response(Object(WP_Error), Object(WC_Product_Variable), Object(WP_REST_Request)) #1 /home/u7544453/public_html/staging/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(189): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #3 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(362): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php on line 148 2021-04-15T16:34:44+00:00 CRITICAL Uncaught Error: Call to undefined method WP_Error::get_data() in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php:148 Stack trace: #0 /home/u7544453/public_html/staging/wp-includes/class-wp-hook.php(287): WC_POS_APIv2_Products->product_response(Object(WP_Error), Object(WC_Product_Variable), Object(WP_REST_Request)) #1 /home/u7544453/public_html/staging/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(189): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #3 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(362): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php on line 148 2021-04-15T16:39:47+00:00 CRITICAL Uncaught Error: Call to undefined method WP_Error::get_data() in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php:148 Stack trace: #0 /home/u7544453/public_html/staging/wp-includes/class-wp-hook.php(287): WC_POS_APIv2_Products->product_response(Object(WP_Error), Object(WC_Product_Variable), Object(WP_REST_Request)) #1 /home/u7544453/public_html/staging/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(189): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #3 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(362): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php on line 148 2021-04-15T16:40:53+00:00 CRITICAL Uncaught Error: Call to undefined method WP_Error::get_data() in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php:148 Stack trace: #0 /home/u7544453/public_html/staging/wp-includes/class-wp-hook.php(287): WC_POS_APIv2_Products->product_response(Object(WP_Error), Object(WC_Product_Variable), Object(WP_REST_Request)) #1 /home/u7544453/public_html/staging/wp-includes/plugin.php(212): WP_Hook->apply_filters(Object(WP_REST_Response), Array) #2 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php(189): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(WC_Product_Variable), Object(WP_REST_Request)) #3 /home/u7544453/public_html/staging/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(362): WC_REST_Products_V2_Controller->prepare_object_for_response(Object(WC_Product_Variable), Object(WP_REST in /home/u7544453/public_html/staging/wp-content/plugins/woocommerce-pos/includes/apiv2/class-wc-pos-products.php on line 148
please advise! Thanks.
- The topic ‘REST API ERROR with WCFM’ is closed to new replies.