[SOLVED] Error when opening empty cart

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 4 months ago #260126

-- 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:

        $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: 8 years 4 months ago by trevsmiff.

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

  • Posts: 26249
  • Thank you received: 4039
  • MODERATOR
8 years 4 months ago #260128

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 4 months ago #260145

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.

  • Posts: 26249
  • Thank you received: 4039
  • MODERATOR
8 years 4 months ago #260148

Hi,

So please take a look in your PHP error log.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 4 months ago #260200

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:

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:
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: 8 years 4 months ago by trevsmiff. Reason: error found after more testing

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

  • Posts: 26249
  • Thank you received: 4039
  • MODERATOR
8 years 4 months ago #260240

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
8 years 4 months ago #260268

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.047 seconds
Powered by Kunena Forum