hi, do you have a url for us to see this?
The problem will either be a theme/plugin conflict. You could test this out using my WP Safe Mode plugin.
Sorry, it’s a theme I’m developing that I have running on xampp on my desktop. I did try killing all the other plugins with no effect, so I tried it on a default WP theme and it worked amazingly well. So I guess it’s an issue with my theme but I don’t particularly know how to track down the problem.
The only advice I can give without seeing it in action is to check your JS console and/or see the network tab to see the response you got from the AJAX request. You’ll probably get a clue on what’s conflicting there.
https://developers.google.com/web/tools/chrome-devtools/console
From the Firefox console whenever I refresh or visit a page on my site I get these two errors:
TypeError: a(…).on is not a function login-with-ajax.js:1:2881
TypeError: a(…).on is not a function login-with-ajax.js:1:1509
When I click the submit button of the login form it throw an additional error:
TypeError: a(…).on is not a function login-with-ajax.js:1:2881
TypeError: a(…).on is not a function login-with-ajax.js:1:1509
SyntaxError: unexpected token: ‘:’ my_testsite:1:9
I get logged in but the spinner just keeps spinning
-
This reply was modified 4 years, 4 months ago by y2kand13.
You’re probably not loading JS files correctly in your theme via wp_head() or doing something funky with jQuery.
I’d suggest removing lines of your custom theme, specifically JS-related ones, remove your included JS files one by one, until the error goes away, and then drill down to figure out what’s specifically causing the conflict.
Sounds like a plan I’ll let you know how it goes.
OK I found some junk in my function file that was causing the problem, I removed it, no more errors and everything is working perfect! Thanks for pointing me in the right direction.
if ( !is_admin() ) {
wp_deregister_script('jquery');
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"), false, '1.3.2');
wp_enqueue_script('jquery');
};
I’m thinking if I link to that script in the header instead of the function file it would work because then it would load before your plugin does?
-
This reply was modified 4 years, 4 months ago by y2kand13.
-
This reply was modified 4 years, 4 months ago by y2kand13.
Good info thanks for the link.