-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error - auth0 cannot find node with id "auth0-login-form" #483
Comments
Hi @hesperanca ... sorry for the trouble here. You said:
Are you talking about wp-login.php? That error is saying that it doesn't have anywhere to put the Lock form (it's looking for a node with an Do you have any relevant customizations at all? |
Hi Josh, Thanks for your reply. Sorry, yes I'm talking about wp-login.php. As far as I know there are no customisations to the login process. If I revert back to 3.5.2 all is fine. As soon as I upgrade I start to get the error. I'm relatively new to WordPress so there may be something I'm doing wrong but I cannot see what it could be. Thanks for your help. |
Thanks for the extra information here. I just spun up a fresh test install and tried a few options and could not replicate this. Can I have you check a few more things, please?
Thank you! |
Hi Josh, Thanks for looking into this. Here are the answers to your questions:
Sorry I cannot be more helpful. Thanks for the help once again. |
So, let's walk through all the WP basics here:
I forgot to ask earlier ... when you upgrade and load wp-login.php, you get the error but does the page have a login form at all? And when it redirects, does it redirect to the same page with |
@hesperanca - Any updates here? I have another issue I'll need to fix and release, would be glad to get a fix in for this if the root cause in on our end. |
Hi Josh, Sorry been away from the office all day today. Just tried switching from the third party theme we were using to one of the default themes and it has started to work. Strange thing is that version 3.5.2 of the auth0 plugin works fine with the third party theme. I'll have a look at the theme code to see if I can find the reason for the conflict and let you know my findings. Thanks for all the help. Regards, |
Thanks for the update, @hesperanca. Let me know as soon as you're able, happy to add this to an upcoming patch release if it's an issue on our end. One thing to note ... we did add a filter to the login form output so you can adjust how the form is output, shown here: https://github.com/auth0/wp-auth0/blob/master/templates/login-form.php#L39 Documented here: https://auth0.com/docs/cms/wordpress/extending#auth0_login_form_tpl I'm sure that your theme isn't using that filter but it might helpful figure out the root cause. Also, if that theme is open source and you can provide a link, I'm happy to take a look and see if I can figure out what's going on. Thanks! |
Good find! Yes, that filter will run after our filter ( https://github.com/auth0/wp-auth0/blob/3.5.2/WP_Auth0.php#L60 What you can do, instead of creating a whole new page, is to remove their filter: remove_filter( 'login_message', `wpjobster_custom_login_form_message`, 11 ); I'll close this one for now. Thanks for updating with the resolution! |
After upgrading from 3.5.2 to 3.6.1 the authentication page throws a js error saying "auth0 cannot find node with id "auth0-login-form" and it redirect me to the standard WP login page. The same was hapenning with version 3.6.0.
I may be missing something but had to revert back to 3.5.2 to get it working again.
Cheers for all your help.
The text was updated successfully, but these errors were encountered: