Error 0 on checkout when log-in

  • Posts: 719
  • Thank you received: 3
4 years 7 months ago #310894

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.11
-- Error-message(debug-mod must be tuned on) -- : 0
error 0
Cannot pass parameter 3 by reference

Hi, in my Hikashop configuration, on Checkout and "Login & Registration" I have "Login" set to yes.
From a few days, when you go to the checkout and go to the "Login & Registration" step you have an issue: a page with error number zero and Cannot pass parameter 3 by reference.
If I set the configuration Checkout, Login & Registration, Login to NO.
There is no issue.
Please, could you help me?
Thanks in advance
Best regards


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 719
  • Thank you received: 3
4 years 7 months ago #310926

Hi,
I've check the code and the issue seems to come out in the file componente/com_hikashop/checkout/tmpl/login.php
At the line 53 at
$this->loadTemplate('form')
start the issue.
It seems to come from login_form.php
at line 187
<?php echo $this->cart->displayButton(JText::_('HIKA_LOGIN'), 'login', @$this->params, '',' var b = document.getElementById(\'login_view_action\'); if(b) { b.value = \'login\'; } document.hikashop_checkout_form.submit(); return false;','', 0, 1, 'btn btn-primary'); ?>
>
but I'm not be able to understand what's matter


my site with Hikashop
www.lacasettabio.it
Last edit: 4 years 7 months ago by lacasetta.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
4 years 7 months ago #310942

Hi,

I would first recommend to turn on the "error reporting" and "debug mode" settings of the Joomla configuration, and reproduce the error.
That way, that will give you an error message with much more information on where the problem comes from.
It would help if you could provide a screenshot of the error page with the additional debug information.

Now, supposing that it comes from the file componente/com_hikashop/checkout/tmpl/login.php I would recommend to turn off the "checkout legacy" setting of the Hikashop configuration in order to switch to the new checkout of HikaShop. That should help.

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

  • Posts: 719
  • Thank you received: 3
4 years 7 months ago #310950

Hi,
thanks for your help.
After enabled the debug mode and error rport I have not other error message.
You can see my issue from my screenshot1
Also, about the legacy mode on checkout, I have not the select on my form.
You can see that from my screenshot 2


my site with Hikashop
www.lacasettabio.it
Attachments:

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
4 years 7 months ago #310963

Hi,

The checkout legacy is activated as far as I can see. Otherwise, you wouldn't see the other checkout options below the "checkout legacy" setting and you wouldn't get that error.
However, it seems that the option to deactivate the checkout legacy has been removed from your HikaShop configuration on your website for some reason (there is no way to remove that yes/no option unless the view file displaying that area has been modified).
So you could always look in the hikashop_config table via your phpmyadmin from the entry with the namekey checkout_legacy and set it to 0. But the person who did that change might have had a reason for removing the option. So you might want to check with that person.

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

  • Posts: 719
  • Thank you received: 3
4 years 7 months ago #310987

Hi,
there is no other person that work with my site.
I did not remove intenzionally the yes/not legacy button.
I don't remember very well, but it seems that after the first Hikashop update (the one that introduced the new checkout) the checkout legacy buttun did'not be there.
Could be on override that I had? If yes , what is the file?
By the way, I'd like to restore the real backend setting of Hikashop. What can I do?
Thanks


my site with Hikashop
www.lacasettabio.it
Last edit: 4 years 7 months ago by lacasetta.

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

  • Posts: 719
  • Thank you received: 3
4 years 7 months ago #310988

Hi,
I suppose that there was an oversight.
The option to disable the checkout legacy is on the third row of my screenshot.
So, now I've disabled all the legacy options and the site seems to work fine.
Thanks
Best regards


my site with Hikashop
www.lacasettabio.it
Last edit: 4 years 7 months ago by lacasetta.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum