JQuery.ajax error when trying to log in (with wrong password) – UserPro Forums https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/feed/ Mon, 06 May 2024 13:29:31 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-45410 <![CDATA[JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-45410 Wed, 07 Jan 2015 15:40:07 +0000 Nazeem Hi,

When I’m trying to log in with a wrong password, I get the following error:

Error in JQuery.ajax when submitting a form: SyntaxError: Unexpected token <

jquery.ajax error

This happens only when I’m filling in a wrong password. When the right password is entered, I get logged in.
How can I solve this?

]]>
https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-45999 <![CDATA[Reply To: JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-45999 Fri, 13 Feb 2015 21:56:04 +0000 Paradigm I have the same problem! Have you solved it?

]]>
https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46021 <![CDATA[Reply To: JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46021 Sat, 14 Feb 2015 21:33:20 +0000 Nazeem Yes, which theme are you using? It was a problem at my theme (Avada)

]]>
https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46023 <![CDATA[Reply To: JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46023 Sat, 14 Feb 2015 21:36:45 +0000 Paradigm Hello! I’m using Avada, too=)

]]>
https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46029 <![CDATA[Reply To: JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46029 Sun, 15 Feb 2015 11:59:24 +0000 Nazeem Ok,

Please do the following:

open functions.php in the Avada theme folder.
Search for this line: add_action( 'init', 'avada_load_login_redirect_support' ); and comment it like this:
// add_action( 'init', 'avada_load_login_redirect_support' );

Then it should work.

The problem was that Avada placed an redirect when a login fails, and return an HTML page. the Ajax Request expects an JSON response but gets an HTML and tries to parse it. And then gives the error.

]]>
https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46030 <![CDATA[Reply To: JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46030 Sun, 15 Feb 2015 12:28:34 +0000 Paradigm YOU ARE THE BEST!!!! You made my day! Thank you so much!

]]>
https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46042 <![CDATA[Reply To: JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46042 Sun, 15 Feb 2015 19:16:58 +0000 Nazeem You are welcome! Glad I could help. I was struggling with that issue too 😛
Good luck with the development of your site.

]]>
https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46100 <![CDATA[Reply To: JQuery.ajax error when trying to log in (with wrong password)]]> https://forum.userproplugin.com/forums/topic/jquery-ajax-error-when-trying-to-log-in-with-wrong-password/#post-46100 Wed, 18 Feb 2015 11:25:40 +0000 MJSupport UserPro Thankyou so much Nazeem 🙂

]]>