Empty password not allowed

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
9 years 11 months ago #183222

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.24
-- PHP version -- : 5.4.31
-- Browser(s) name and version -- : Chrome 39.0.2171.95 m
-- Error-message(debug-mod must be tuned on) -- : Empty password not allowed

I just upgraded to 2.3.4 and now have a problem when users try to register through the checkout process. I have attached the configuration settings.

When a user tries to register for a new account on the checkout page, it refreshes the page and gives the error "Empty password not allowed", even though the password was included.

I have tested the login feature on that page for an existing user, and that works correctly, so the problem appears to be limited to new registrations.

Here is the error logs from the Joomla Debug Console:


Call stack
# Function Location
1 JSite->dispatch() JROOT\index.php:42
2 JComponentHelper::renderComponent() JROOT\includes\application.php:194
3 JComponentHelper::executeComponent() JROOT\libraries\joomla\application\component\helper.php:348
4 require_once() JROOT\libraries\joomla\application\component\helper.php:380
5 hikashopController->execute() JROOT\components\com_hikashop\hikashop.php:77
6 JController->execute() JROOT\administrator\components\com_hikashop\helpers\helper.php:1461
7 checkoutController->step() JROOT\libraries\joomla\application\component\controller.php:761
8 checkoutController->after_login() JROOT\components\com_hikashop\controllers\checkout.php:350
9 checkoutController->_doLogin() JROOT\components\com_hikashop\controllers\checkout.php:557
10 JSite->login() JROOT\components\com_hikashop\controllers\checkout.php:644
11 JApplication->login() JROOT\includes\application.php:292
12 JError::raiseWarning() JROOT\libraries\joomla\application\application.php:759
13 JError::raise() JROOT\libraries\joomla\error\error.php:276




Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 11 months ago #183229

Hi,

We do not have the problem on our end and no one else reported it.
Could you provide a link to the shop so that we could reproduce the issue and analyze it ?

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
9 years 11 months ago #183281

The problem is on a local server, as I did not want to implement on the live site until all the bugs were worked out. Plus, our site is quite large, and we don't have the ability to implement a second instance of the site on the live server. Any suggestions on any other way to troubleshoot?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 11 months ago #183302

If we can't see the problem anywhere is hard to say anything.
The simplest is to go on line 292 of the file \includes\application.php and remove the error message from the code there.

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
9 years 11 months ago #183871

We will have a lull between events where we don't need to make a lot of transactions over the next few weeks. So what I would like to do is go ahead and make the update on the live site and then have you see it. But I would like to make the process as painless as possible, so can you tell me:

1) Will you be working next Monday/Tuesday to check it on the live site, and if so, what time (roughly)?
2) If we can't figure it out, will it be possible to uninstall and reinstall version 2.1.1?

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 11 months ago #183873

Hi,

We work everyday of the year. There is no particular time. I work when I'm in front of my computer. It's 2am at the moment.
However, I can't say when I'll see your message. I handle each message when I reach to it and read it. I handle tens of messages everyday.
You sure can install the 2.1.1 on top of the 2.3.4 and that will downgrade. Just install the install package of the 2.1.1 via the Joomla installer. No need to uninstall anything.

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
9 years 11 months ago #184197

Ok, I have upgraded on the live site with the same problem. Can you please let me know what you need to take a look and diagnose?

Here is the URL: www.multifamilyinsiders.com/shop-multifa...com-what-should-i-do (Please scroll down, as I haven't put in the custom code to fix the clear issues)

Thank you!!

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 11 months ago #184226

Hi,

Just tried to go through your checkout and register with a new account. I didn't get any error.
So it seems to be working fine as far as I can see.
It's probably your browser auto filling some of the fields of the login for you due to the many tests that you must have done on your website. Try with another browser and you should not have the problem, like me.

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
9 years 11 months ago #184262

Did you happen to check with Chrome? I did check with Firefox and got through with no problem. I tried to test again with Chrome, being very careful about not using autofill, and had the same error.

UPDATE: I had one of my employees check using Chrome with the same error.

Last edit: 9 years 11 months ago by brentwilliams2.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
9 years 11 months ago #184268

I used Chrome for my test.
So it's not a browser issue since it works on my Chrome and not yours.
I suppose that if you clear your Chrome browser's auto-fill data (which I don't recommend for practicality) it would work as well.

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

  • Posts: 78
  • Thank you received: 5
  • Hikashop Business
9 years 11 months ago #184373

I appreciate the help. I had some friends test and it worked for them. A bit disconcerting that I have never had this happen with other elements, but it looks like all is well.

Thanks again.

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

  • Posts: 31
  • Thank you received: 1
7 years 6 months ago #270359

I see several forum posts about this and am now experiencing this problem. Same as the others, it seems to be only on registrations on the Checkout page. I get the same behavior on both Firefox and Chrome, with or without the Redirect Joomla Registration plugin enabled.

I'm finding that filling out the registration form and pressing ENTER instead of clicking on the Register buttton causes the error (NOTE: press ENTER when the focus is on one of the input fields; if the focus is on the Register button and you press ENTER, it's the same as clicking the button).

If I click on the Register button (or tab over to it and then press ENTER), I never get any problems. So the code for capturing the ENTER-key submission of the form seems to be different than the Register button submission code.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 5 months ago #270360

Hello,

Which HikaShop version number are you using ?

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: 31
  • Thank you received: 1
7 years 5 months ago #270395

This was with 3.0.1, but I also just tested with 3.1.0 with the same results. Completely new Joomla 3.7.2 with just HikaShop 3.1.0 installed.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #270402

Hi,

Ok, but there are many ways to configure the checkout so it's hard to reproduce.
Could you provide a screenshot of the settings under the "checkout" and under the "advanced" tabs of the Hikashop configuration ?

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

  • Posts: 31
  • Thank you received: 1
7 years 5 months ago #270417

Okay, attached screenshots. I did a few more test installs, again always starting from scratch, reinstalling Joomla and then HikaShop -- keeping pretty much everything on default settings. The only things changed were:

  • Joomla: Allow User Registration: Yes
  • Joomla: New User Account Activation: None
  • HikaShop: Created one product
  • HikaShop: Created one Paypal Payment Method

Some notes about the screenshots (ignore the "Could not instantiate mail function" since I didn't setup the SMTP mail):

  1. If I don't touch any HikaShop configuration pages and just go straight to buy the one product I created, registering on Checkout works fine. But, I get an "Undefined index: useractivation ..." notice as shown.
  2. If I go to HikaShop configuration and change nothing but still click Save, I now get the problem (i.e. pressing Enter to register on Checkout page when the focus is one of the text fields results in the "Empty password not allowed" message.
  3. Before saving HikaShop configuration for the first time, the fields of the Checkout's input fields look like this (notice they are wide, and Login overlaps Registration a little).
  4. After saving HikaShop configuration, the fields now look like this, narrower and with a different layout.
  5. Registering by pressing Enter won't work unless I use the Register button to get to the next page. When I do that, the "Undefined index: useractivation ..." notice no longer shows.
  6. Configuration > Checkout page (nothing changed from defaults)
  7. Configuration > Advanced page (nothing changed from defaults)

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #270501

Hi,

In your screenshot 7 I see that you have the "checkout legacy" setting activated. But that setting is turned off by default when you install HikaShop for the first time on a website. If you have it on, it's either that you turned it on, or that you installed HikaShop on a website that already had HikaShop installed before. So you're actually using the old legacy checkout, instead of the new checkout.

But anyway, the problem is in both checkouts. I've added a patch to display a better error message in such case.
You can download the install package on our website and install it on yours again in order to get the patch.

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

  • Posts: 31
  • Thank you received: 1
7 years 5 months ago #270513

Hello, it definitely seems to have something to do with the Legacy Checkout. Judging by the layout of the Checkout (screenshot 3) on first install, I do think that non-Legacy Checkout is initially used for the actual Checkout. However, if you go to Configuration > Advanced > Legacy Settings on first install, the Configuration options actually show Legacy Checkout as set to on (screenshot 7), although I don't think it's actually using Legacy Checkout until I click Save. This would explain why after I click Save for the first time, it reverts to the Legacy Checkout layout (screenshot 4) and then the Empty Password problem happens.

This is literally with a completely new Joomla install: new website directory, newly unzipped Joomla package, new database, new download of HikaShop -- no previous data from before. I even tried clearing all browser data.

The Empty Password problem still happens in Legacy Checkout mode (i.e. if I press Enter from the password field, or any of the other input fields), but I will probably try to stick with the new Checkout from now on ...

Side note, in /administrator/components/com_hikashop/helpers/checkout/login.php line 244, should the 'a' be capitalized in 'useractivation'?

Last edit: 7 years 5 months ago by nyanginator.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 5 months ago #270590

Hi,

Thanks for the feedback. I've added three different patches, one for the default value of the legacy settings (after update, and after new install), one for the legacy checkout to handle the errror message properly, and one for the userActivation variable.
It should be all fine now.

The following user(s) said Thank You: nyanginator

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

Time to create page: 0.117 seconds
Powered by Kunena Forum