VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hpheidinger@arcor.de on July 27, 2018, 22:29:31 PM

Title: Serious bug in the registration process [not a bug]
Post by: hpheidinger@arcor.de on July 27, 2018, 22:29:31 PM
First things first ...
------ Using -------------
VirtueMart 3.2.14
Joomla 3.8.10
Centos 7.5
-----------------------------

Virtuemart has a serious bug in the registration process that does not allow a registering
candidate to finish registration succesfully.

Selection from the 'State/Region/.." dropdown on the registration form  is impossible
even if the list is not empty
But a selection is 'required' it the list is not empty (E.g. for India, China, Russia, ...)

So a registering user (at state 'public/guest' since still 'unregistered') will fail over-and-over
with the registration since he cannot make a section for something  he has to make to get the registration thru.
See the idiocratcy ???
Every registering user will fail in the registration process if he has specified a 'country' that has a 'state' list
attached to the chosen country.

- Only 'administrators' can access the 'state' list in the admin backend.

- In the 'front-end' this 'state lists' are not accessible - neither for 'public/guests'
  during the registration process nor for a registered user.

I assume this is a permission problem.
The 'state/region' list permission must be the same as that for the 'country' selection - but obviously isn't
in the front-end (site) - otherwise the selection would work and the registration process would not fail
over-and-over for countries with non-empty state/region/provice lists.

In order to get users successfully thru the registration I have disabled the 'required' flag from the
state/region/province dropdown in the user-fields But this cannot be the solution to the problem.

You may verify this ill-behavior by trying to register a user from India (or other country with a non-empty
state/region/province list maintained by an administrator in the VirtueMart admin backend under
Configuration -> Countries)
Title: Re: Serious bug in the registration process
Post by: Studio 42 on July 27, 2018, 22:45:20 PM
Do you use a one page checkout plugin or virtuemart core checkout ?(if yes disable it to test)
Have you try using Joomla core template protostar ?
I know that the problem is certainly not here, but this are the basic test to be sure, it's a virtuemart problem.
Title: Re: Serious bug in the registration process
Post by: GJC Web Design on July 28, 2018, 16:02:42 PM
Of course it works otherwise VM would be un-useable

on any of my sites as guest etc the state selector shows correctly

It is rendered by JS ajax so find if the ajax is returned properly ( no debug info etc in it) or if it is even called ( fails because of JS error on your template)

Title: Re: Serious bug in the registration process
Post by: hpheidinger@arcor.de on August 19, 2018, 10:11:27 AM
Hello,

In my case it fails for a non-obvious reason whilst the 'country' box is working just fine.
I had to remove the 'mandatory flag' from the 'state/region/....' selector to get registering users
through the registration process. Some guy from India notified me, that registration failed over-and-over
for him, since he could not select from the drop-down because it did not get filled.

I have changed the country of an already registered test-user to 'India' and tried a 'State/Region/...'
selection from the drop-down in the customer profile manager. but with the same effect even for a
'registered' user: empty drop-down for the "State/Region/..." selection.

You may verify this here:

          https://music-on-the.net/

Title: Re: Serious bug in the registration process
Post by: jenkinhill on August 19, 2018, 12:09:55 PM
I see an error in the console:

TypeError: jQuery.browser is undefined

Possible issue is this jQuery version which is older than that used for VM is loading after the VM version, 1.12.4

https://music-on-the.net/modules/mod_bm_cool_menu/assets/js/jquery-1.11.1.min.js

bm_cool_menu
Title: Re: Serious bug in the registration process
Post by: GJC Web Design on August 19, 2018, 19:23:26 PM
Uncaught TypeError: Cannot read property 'msie' of undefined
    at HTMLDocument.<anonymous> ((index):108)
    at j (jquery-1.11.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js:2)
    at Function.ready (jquery-1.11.1.min.js:2)
    at HTMLDocument.J (jquery-1.11.1.min.js:2)
Title: Re: Serious bug in the registration process
Post by: hpheidinger@arcor.de on August 21, 2018, 09:38:08 AM
@jenkinhill & GJC Web Design

Thank you very much for the pointers.

The culprit was a radio-button in the "BM Cool menu" module setup:

    Load JQuery "YES"

By setting it to "NO" everything is working just fine now.


Best regards ...