• There’s a syntax error when submitting the login form, in the ‘lwa_login’ event handler. It seems like everything works correctly up to there.

    Chrome console says:

    Uncaught Error: Syntax error, unrecognized expression: .
    gb.error @ jquery.js?ver=1.11.2:2
    gb.tokenize @ jquery.js?ver=1.11.2:2
    gb @ jquery.js?ver=1.11.2:2
    m.fn.extend.find @ jquery.js?ver=1.11.2:2
    (anonymous function) @ login-with-ajax.source.js?ver=4.2.2:56
    m.Callbacks.j @ jquery.js?ver=1.11.2:2
    m.Callbacks.k.fireWith @ jquery.js?ver=1.11.2:2
    x @ jquery.js?ver=1.11.2:4
    m.ajaxTransport.send.b @ jquery.js?ver=1.11.2:4

    Line 56 of login-with-ajax.source.js (also in login-with-ajax.js).

    var lwaSub = newWidget.find('.').show();

    Using login-with-ajax v3.1.4

    https://www.ads-software.com/plugins/login-with-ajax/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    just to narrow down the problem and help us debug the issue is it possible to try the following temporarily:

    – deactivating all other plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
    – switching to the default theme to rule out any theme-specific problems

    Thread Starter dacrosby

    (@dacrosby)

    I disabled all other plugins and switched to TwentyFifteen theme, but it’s still showing the same error. I have it set to not redirect the page after login, perhaps if it redirects the user it’d bypass the error?

    I went ahead and made a quick change to the plugin file mentioned above directly and it seems to have corrected the issue.

    In login-with-ajax-source.js (again, the same issue is in login-with-ajax.js on erm.. line 1), I modified line 56 to add a full selector instead of a period.

    var lwaSub = newWidget.find('.lwa-title-sub').show();

    I downloaded 3.1.4 from WordPress plugin page again to make sure I hadn’t accidentally caused the error myself, but it is present also in a fresh copy of the plugin:

    $.get( data.widget, function(widget_result) {
    	var newWidget = $(widget_result);
    	form.parent('.lwa').replaceWith(newWidget);
    	var lwaSub = newWidget.find('.').show(); // line 56
    	var lwaOrg = newWidget.parent().find('.lwa-title');
    	lwaOrg.replaceWith(lwaSub);
    });
    Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, do you have sample link to your site for us to see and analyze please?

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Syntax error, unrecognized expression: .’ is closed to new replies.