Shortcode results in critical error
-
Hi, in our short description fields we use a custom shortcode to display a short message. The shortcode grabs the content from a custom post type, nothing more. This is the code: https://share.woofers.be/4guZn9mJ. Just a simple shortcode.
In the backend, when we open a product it generates this critical error:
Foutmelding: Uncaught Error: Call to a member function get_type() on bool in www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php:20 Stack trace: #0 /www/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include() #1/www/wp-admin/includes/template.php(1395): WC_Meta_Box_Product_Data::output(Object(WP_Post), Array) #2 /www/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post)) #3 /www/wp-admin/post.php(206): require('/data/sites/web...') #4 {main} thrown
Just resaving the product makes the error go away.
But important to note: after re-saving, all the upsell products are gone.It was no problem before WooCommerce 6.0, it has worked for years before.
Any idea where to search?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Shortcode results in critical error’ is closed to new replies.