Error thrown

Call to a member function get_regular_price() on boolean