Site crashing trying to update a page
-
We are getting an error when we try to update a particular page in our website. It appears to be an issue with the WooCommerce plugin:
Error Details
=============
An error of type E_ERROR was caused in line 516 of the file /home/jared/gcs.edu/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/ProductSchema.php. Error message: Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\StoreApi\Schemas\V1\ProductSchema::get_low_stock_remaining() must be an instance of WC_Product, instance of WC_Product_Course given, called in /home/jared/gcs.edu/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/CartItemSchema.php on line 347 and defined in /home/jared/gcs.edu/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/ProductSchema.php:516
Stack trace:
#0 /home/jared/gcs.edu/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/CartItemSchema.php(347): Automattic\WooCommerce\StoreApi\Schemas\V1\ProductSchema->get_low_stock_remaining()
#1 [internal function]: Automattic\WooCommerce\StoreApi\Schemas\V1\CartItemSchema->get_item_response()
#2 /home/jared/gcs.edu/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/AbstractSchema.php(261): array_map()
#3 /home/jared/gcs.edu/wp-content/plugins/woocommerce/packages/woocom`
- The topic ‘Site crashing trying to update a page’ is closed to new replies.