Title: Fatal error when using [product_page] shortcode
Last modified: November 18, 2016

---

# Fatal error when using [product_page] shortcode

 *  [doubleedesign](https://wordpress.org/support/users/doubleedesign/)
 * (@doubleedesign)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/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 25`
 * Overriding 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.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [doubleedesign](https://wordpress.org/support/users/doubleedesign/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-when-using-product_page-shortcode/)
 * Status: not resolved