Forums

[Plugin: Register Plus] Syntax error (2 posts)

  1. erintech
    Member
    Posted 3 years ago #

    Hi

    Register Plus is exactly what I need. It works fine on Firefox (on a Linux PC) and using Chrome/Windows but not in Internet explorer/Vista. When the user goes to the registration page, errors are thrown up:

    Line: 96
    Char: 8
    Error: Syntax error
    Code: 0
    URL: http://www.alstonefield.org/wp-login.php?action=register

    If I OK on that, I see another error:

    Line: 129
    Char: 2
    Error: 'userSettings' is undefined
    Code: 0
    URL: http://www.alstonefield.org/wp-login.php?action=register

    After these errors, the registration screen appears OK.

    If I uninstall register-plus, everthing works fine. The curious thing is that the quoted errors are occuring in wp-login.php, which appears to be the stock WordPress version.

    Any thoughts?

    Thanks,

  2. erintech
    Member
    Posted 3 years ago #

    Answering my own post for the benefit of others:

    (I did look before posting but didn't find it first time...)

    There is a workaround in "Update for 2.7 Cus it dont work anymore":

    MarQ_ZA provides the solution:

    1) Under register-plus settings, enter a default year (eg 2009) under Date Field Settings

    2) Edit the file /wp-admin/js/common.js

    change this:

    // Returns all settings as js object.
    function getAllUserSettings() {
    return wpCookies.getHash('wp-settings-'+userSettings.uid) || {};
    }

    to this:

    // Returns all settings as js object.
    function getAllUserSettings() {
    if (typeof(userSettings) == 'undefined')
    {
    return {};
    }
    else
    {
    return wpCookies.getHash('wp-settings-'+userSettings.uid) || {};
    }
    }

    Many thanks to MarQ_ZA for this.

    It appears that the difference between browsers is that IE is more verbose when it hits an error.

Topic Closed

This topic has been closed to new replies.

About this Topic