Registration Forms appear to be getting hidden

General questions relating to Joomla! 3.x. Please consider the availability of third-party templates and extensions when deciding which Joomla version to use.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
p3_chuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Oct 13, 2015 2:33 pm

Registration Forms appear to be getting hidden

Post by p3_chuck » Fri Feb 09, 2018 4:44 pm

I'm not sure when this starting happening, but all of a sudden users cannot register at our sitehttps://www.p3proswing.com/site3.

Steps to replicate issue:
Click on 'My Account'
Click on 'Don't have an account?'

You'll see the Registration Form fields quickly flash and then go away. Only the 'Register' and 'Cancel' buttons will remain.

I've checked Google Web Developer and they do not appear to be hidden there. If I view the page source, the fields are there. It appears that it may be getting hidden by some javascript, but I have no idea why.

Any help to resolve this in a manner that will not be overwritten by future Joomla updates would be appreciated.

We're on Joomla 3.8.5

Thanks

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3952
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Registration Forms appear to be getting hidden

Post by AMurray » Fri Feb 09, 2018 10:16 pm

In Firefox and Chrome I see that behaviour, but can't explain it.

Just wondering if it's your template. Can you try it with Protostar as the default; just to see if you can get the registration form to load normally.

Duplicate your site if necessary for testing.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5847
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Registration Forms appear to be getting hidden

Post by sozzled » Fri Feb 09, 2018 10:34 pm

I lost count of the amount of Javascript on that website; I stopped counting after I saw 20 JS scripts. Any one (or more) of those script may be responsible for setting the display property to "none" for the registration form. It might also be an undesirable aspect of the form developed by Hikashop.

My guess is in line with the OP. There's a JS issue but I stopped searching for the source of the problem after 20 minutes.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5847
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Registration Forms appear to be getting hidden

Post by sozzled » Fri Feb 09, 2018 10:53 pm

UPDATE: Whatever it was that broke it, the registration form appears now. Case closed, I think.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

User avatar
AMurray
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3952
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Registration Forms appear to be getting hidden

Post by AMurray » Sat Feb 10, 2018 1:16 am

Not for me. Still only seeing the Register and Cancel buttons.
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5847
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Registration Forms appear to be getting hidden

Post by sozzled » Sat Feb 10, 2018 2:08 am

Works fine for me on Firefox and Google Chrome. 8)
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

p3_chuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Oct 13, 2015 2:33 pm

Re: Registration Forms appear to be getting hidden

Post by p3_chuck » Mon Feb 12, 2018 1:24 pm

sozzled - it's not displaying for me in Chrome

p3_chuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Oct 13, 2015 2:33 pm

Re: Registration Forms appear to be getting hidden

Post by p3_chuck » Mon Feb 12, 2018 3:39 pm

It appears to be happening in this section of code (between lines 968 and 972):

Code: Select all

					var currentUserGroup;	
					
					jQuery(document).ready(function(){
						var fieldHtml = jQuery('#profileGroupID').parents('fieldset').children('div').clone();								
						if(! fieldHtml.length){
							//if parent is not div. Any other element then
							fieldHtml = jQuery('#profileGroupID').parents('fieldset').children().not('legend').clone();
						}
But I have no idea where this is coming from or why this is hiding the fields.

p3_chuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Oct 13, 2015 2:33 pm

Re: Registration Forms appear to be getting hidden

Post by p3_chuck » Mon Feb 12, 2018 3:49 pm

@A Murray - I did try a different template to no avail.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 19105
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: Registration Forms appear to be getting hidden

Post by leolam » Mon Feb 12, 2018 5:05 pm

sozzled wrote:Works fine for me on Firefox and Google Chrome. 8)
Does not work for me in any browser

Leo 8)
Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
Member Joomla Bug Squad & Joomla CMS Release Team

User avatar
sozzled
Joomla! Champion
Joomla! Champion
Posts: 5847
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia
Contact:

Re: Registration Forms appear to be getting hidden

Post by sozzled » Mon Feb 12, 2018 5:26 pm

@p3_chuck, @AMurray, @leolam: you're right. I should have taken screenshots when I thought I saw the registration form display normally (but I didn't and I may have been mistaken). So it doesn't work and I really don't have the energy to find out why. Sorry.
https://www.kuneze.com/blog
Former member of Kunena project team
If you think I’m wrong then say “I think you're wrong.” If you say “You’re wrong!”, how do you know?

User avatar
fcoulter
Joomla! Ace
Joomla! Ace
Posts: 1685
Joined: Thu Sep 13, 2007 11:39 am
Location: UK
Contact:

Re: Registration Forms appear to be getting hidden

Post by fcoulter » Mon Feb 12, 2018 6:31 pm

It appears to be happening in this section of code (between lines 968 and 972):

Code: Select all
var currentUserGroup;

jQuery(document).ready(function(){
var fieldHtml = jQuery('#profileGroupID').parents('fieldset').children('div').clone();
if(! fieldHtml.length){
//if parent is not div. Any other element then
fieldHtml = jQuery('#profileGroupID').parents('fieldset').children().not('legend').clone();
}


But I have no idea where this is coming from or why this is hiding the fields.
I think that you are correct that this script is responsible for the issue. I am not sure why it is hiding the fields either. This seems to be an issue with the script logic, rather than a straightforward coding error, which is unfortunately hard to debug.

It is not part of Joomla, so if you fix it, it will certainly not be overwritten if you update Joomla. It is possible that it comes from a plugin, you might check any user plugins that your site uses, in case it comes from there.

Also the registration form does not seem to be the core com_users registration form, but presumably one generated by another component. I am guessing, since your site seems to use Hikashop, that it might be a Hikashop registration page. In that case it may be that this is a bug with Hikashop, perhaps the version that you have is not compatible with the latest version of Joomla, I suggest checking with the developers.
http://www.spiralscripts.co.uk for Joomla! extensions
http://www.fionacoulter.com/blog my personal website
Security Forum moderator :: VEL team member
"Wearing my tin foil hat with pride"

p3_chuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Oct 13, 2015 2:33 pm

Re: Registration Forms appear to be getting hidden

Post by p3_chuck » Mon Feb 12, 2018 8:14 pm

Thanks. I've posted to the HikaShop forum to see if they can identify that javascript as their code.

I guess I'll do a FULL download of our website tonight so I can do a search for that snippet as well.

p3_chuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Oct 13, 2015 2:33 pm

Re: Registration Forms appear to be getting hidden

Post by p3_chuck » Tue Feb 13, 2018 3:16 pm

I've downloaded our entire website and this code appears to be from plugins->user->ProfileGroup->profileGroup.php. This is a JoomApp - Multi Usergroup plugin so I'll contact them regarding this. Thanks everyone for the help.

p3_chuck
Joomla! Apprentice
Joomla! Apprentice
Posts: 33
Joined: Tue Oct 13, 2015 2:33 pm

Re: Registration Forms appear to be getting hidden

Post by p3_chuck » Tue Feb 13, 2018 4:00 pm

Ok... Just in case anyone else has this issue. It was from the JoomApp - Multi Usergroup plugin.

The resolution is very simple. Go to components/com_users/models/registration.php. Do a search for $form = $this->getForm(array(), false); and change this to $form = $this->getForm(array(), true);

That's all.


Post Reply

Return to “General Questions/New to Joomla! 3.x”