WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Register Plus] Javascript Error on Page (7 posts)

  1. kckennedy
    Member
    Posted 5 years ago #

    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?

  2. kckennedy
    Member
    Posted 5 years ago #

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

  3. PigsInc
    Member
    Posted 5 years ago #

    Have you found a solution to this yet?

  4. bigdawggi
    Member
    Posted 4 years ago #

    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!

  5. musicmasteria
    Member
    Posted 4 years ago #

    (Quote what bigdawggi said)

    The javascript error is caused by the script not printing the "http://[site-name]/" 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>

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

  6. hantz
    Member
    Posted 4 years ago #

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

  7. westsideww
    Member
    Posted 4 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic