Error when editing pages
-
Hello,
I’m seeing the following error when I try to edit any pages on my WordPress site:
Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /*/public_html/wp-includes/formatting.php:5373 Stack trace: #0 /*/public_html/wp-includes/formatting.php(5373): preg_replace('@<(script|style...', '', Object(stdClass)) #1 [internal function]: wp_strip_all_tags(Object(stdClass)) #2 /*/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/CartItemSchema.php(475): array_map('wp_strip_all_ta...', Array) #3 [internal function]: Automattic\WooCommerce\StoreApi\Schemas\V1\CartItemSchema->format_item_data_element(Array) #4 /*/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/CartItemSchema.php(462): array_map(Array, Array) #5 /*/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/StoreApi/Schemas/V1/CartItemSchema.php(354): Automattic\WooCommerce\StoreApi\Schemas\V1\CartItemSchema->get_item_data(Array) #6 [internal function] in /*/public_html/wp-includes/formatting.php on line 5373
Disabling this plugin makes the error go away and I am able to successfully edit my pages again. I am running the latest version of the plugin and WooCommerce.
- The topic ‘Error when editing pages’ is closed to new replies.