• With script debugging turned on in my IE browser, I get an error on the registration page:
    A Runtime Error has occurred.
    Line: 11
    Error: ‘jQuery’ is undefined
    When running a script debugger, the first error points to:
    (function($){
    })(jQuery); <–

    WordPress 2.5.1
    Register Plus Plugin 3.5.1

    I’ve created a fresh test site with no other plugins, and get the same. Not that this is currently causing a funtionality problem for me, but I’d like to resolve it. Can anyone point me in the right direction on this please?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter kckennedy

    (@kckennedy)

    P.S. That error was in the datepicker/jquery.bgiframe.js file. Additional errors on jquery.datePicker.js

    Have you found a solution to this yet?

    I just installed this (Register Plus) plugin, and am getting a javascript error on the registration page. It’s only a big deal b/c I need other JS to run on the page on page load.

    userSettings is not defined
    http://[site-name]/wp-admin/js/common.js?ver=20080318
    Line 128

    I have disabled all other plugins as well in the troubleshooting effort.

    I’m using WP 2.7. Thanks in advance!

    (Quote what bigdawggi said)

    The javascript error is caused by the script not printing the “http://[site-name]/&#8221; part of the url in it’s call for the “common.js?ver=20080318” script file.

    <script type=’text/javascript’ src=’wp-admin/js/common.js?ver=20080318′></script>
    VS.
    <script type=’text/javascript’ src=’http://siteurl.com/wp-admin/js/common.js?ver=20080318′></script&gt;

    You can fix this error using my fix here:
    http://wordpress.org/support/topic/274602

    musicmasteria mate, I just run your fix and still i have the same errors…any other ideas?

    I just did a fresh install of Register Plus and found the same issue w/ the Javascript error.

    The problem is that if you don’t select the box for “Allow New Registrations to set their own Password”, it won’t output the correct jQuery include. You can fix this by moving line 1317 to line 1379:

    <script type=’text/javascript’ src='<?php trailingslashit(get_option(‘siteurl’));?>wp-includes/js/jquery/jquery.js?ver=1.2.3′></script>

    Secondarily, I noticed that the custom Registration CSS wasn’t showing up on the page. Turns out this is because this code will only show if you have chosen a custom logo. It can be fixed by moving lines 1550 and 1551 to line 1508 and 1509 right before the end < /style > tag.

    <?php if( $regplus[‘register_css’] && $_GET[‘action’] == ‘register’) echo $regplus[‘register_css’];
    else if( $regplus[‘login_css’] ) echo $regplus[‘login_css’]; ?></style>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Register Plus] Javascript Error on Page’ is closed to new replies.