• Resolved jomo

    (@jonathanmoorebcsorg)


    recently seeing this error in the logs:

    PHP Fatal error: Uncaught Error: Call to a member function get_id() on boolean in ti-woocommerce-wishlist/templates/ti-wishlist.php:68

    line:

    $post = get_post( $product->get_id() );

    rather than handling the error here, the real error may be in product.helper.php l.399+
    $_products = wc_get_products( $args );
    the wishlist $products is updated with information from the woocommerce $_products if such information exists, however products which no longer exist are also left in the array without getting their data set.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘fatal error on missing products’ is closed to new replies.