Skip to main content

[SOLVED] Error when opening empty cart

More
9 years 8 months ago - 9 years 8 months ago #260126 by trevsmiff
-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.6
-- PHP version -- : 5.6
-- Error-message(debug-mod must be tuned on) -- : Call to a member function get() on a non-object

If a new customer tries to look at their cart before adding any products an error is thrown:

'Call to a member function get() on a non-object'
administrator/components/com_hikashop/helpers/checkout.php line 302:
Code:
$this->redirect_url = $this->config->get('redirect_url_when_cart_is_empty', '');

Once the cart has been used (add a product then delete it) the error in no longer displayed.

regards
Trevor
Last edit: 9 years 8 months ago by trevsmiff.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #260128 by Jerome
Hi,

Thanks for the report.
You can re-download HikaShop 3.0 to get the patch.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #260145 by trevsmiff
Hi Jerome

Thanks for the prompt reply. The patch has stopped the previous error but now I just get a blank page and looking at the log file the server is returning a 500 error.

regards
Trevor

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #260148 by Jerome
Hi,

So please take a look in your PHP error log.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago - 9 years 8 months ago #260200 by trevsmiff
Morning Jerome

I think I was looking at the wrong line in the log file last night. I have just tried again and still get a blank page but no error listed in the error log and the access log shows:
Code:
xxxx- - [24/Jan/2017:09:13:10 +0000] "GET /shopping-cart HTTP/1.1" 200 304
Same results with Chrome and FF.

**UPDATE** If I log in as a customer and go to the User control panel and click on the 'Carts' button I get the following error:
Code:
Parse error: syntax error, unexpected ''showcart'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /var/www/vhosts/philippaburnard.com/httpdocs/components/com_hikashop/controllers/cart.php on line 15

regards
Trevor
Last edit: 9 years 8 months ago by trevsmiff. Reason: error found after more testing

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #260240 by Jerome
Hi,

1 - You're right, that is the "access log" of your server ; that's not the PHP error log.

2 - Thanks for the report ; we fixed it !

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #260268 by trevsmiff
Thanks Jerome it all appears to be working correctly now.

regards
Trevor

Please Log in or Create an account to join the conversation.

Time to create page: 0.217 seconds
Powered by Kunena Forum