Fatal error when using [product_page] shortcode
-
I have a site that whitescreens when I use the [product_page] shortcode. My error log shows the following:
PHP Fatal error: Call to a member function get_upsells() on null in /home/myaccount/public_html/wp-content/plugins/woocommerce/templates/single-product/up-sells.php on line 25Overriding up-sells.php in my theme solves the issue for now, by commenting out this section from line 25:
if ( ! $upsells = $product->get_upsells() ) { return; }
The topic ‘Fatal error when using [product_page] shortcode’ is closed to new replies.