Sauter la navigation

[Résolu] problem with login form

This support ticket is created Il y a 5 années et 4 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par Nigel Il y a 5 années et 4 mois.

Assisté par: Nigel.

Auteur
Publications
#1326085

Hi,
I have a problem with [wpv-login-form].
I have a login form [wpv-login-form] and a button that opens a modal with a register form.
When I click to log in, the registration form reacts. if I disable one of them, it works but not both because the send button has the same name. How to solve this problem ? Thank you.
You can test here at the bottom of the page lien caché

Thanks.

#1326131

I have the same problem when the registration form is posted directly on the page. I only use toolset as a plugin.
you can see now what happens when you click on "se connecter"

#1326737

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Could you try it when switching theme to twentynineteen?

I can see in the browser console JS errors which appear to arise from the fact that your theme loads its own version of jQuery instead of using the version of jQuery normally loads (and which is expected by other plugins you may use, and so is never a good idea).

The markup on the page looks correct, there are two separate forms, each with its own submit button, the issue doesn't arise because of incorrectly formed HTML (e.g. a missing </form> tag from the first form).

If changing the theme doesn't help I'll need a copy of your site for further testing: lien caché

You can share a dropbox link or similar here, such links are automatically hidden from other users.

#1326751

Hi nigel,
Can you just tell me which version of jquery should be loaded? Is jquery automatically loaded with toolset?
Thanks

#1326757

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Toolset doesn't add jQuery because WordPress already includes it.

It registers the file at wp-includes/js/jquery/jquery.js and the current version appears to be 1.12.4.

Your theme enqueues its own version of jQuery instead, although looking at your page again in the browser console it appears that jquery is added 3 times (all version 3.2.1).

#1326803

I'm using version 3.2.1 of jquery. Can it come from there?

#1326809

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

As I mentioned before, there are JS errors in the console because your theme is loading a different version (3.2.1) of jQuery than WordPress uses (1.12.4), but I don't know if those errors are related to the problem with the form.

The way to find out is to change theme to twentynineteen and then revisit the page with the forms and test again.

If they work with twentynineteen then it seems like loading the custom version of jQuery by your theme may be the problem.