WordPress.org

Ready to get started?Download WordPress

Forums

FIXED: Register Plus V 3.5.1 calling jquery.js?ver=1.2.3 and getting 404 error (6 posts)

  1. musicmasteria
    Member
    Posted 5 years ago #

    Here is my fix
    This refers to Version 3.5.1 of Register-Plus

    As I would look through my access logs I would see that there were a great deal of calls to:
    "http://siteurl.com/post/wp-includes/js/jquery/jquery.js?ver=1.2.3"
    all getting a 404 Error

    I couldn't figure out what was calling that script until I looked through the source code of every plugin I had running (20-30 plugins.. wasn't fun)

    Anyway I found the problem in:
    wp-content/plugins/register-plus/register-plus.php

    SEARCH for this code:
    <?php trailingslashit(get_option('siteurl'));?>

    and REPLACE ALL OCCURRENCES with this code: (5 of them)
    <?php echo trailingslashit(get_option('siteurl'));?>

    then SAVE the file and you are done.

    The problem is obviously that the value of "trailingslashit(get_option('siteurl'))" is not getting echoed or printed so the url is always appended to the end of the current url. This causes a problem when the url is "http://siteurl.com/post/whatever/" but not when it is just "http://siteurl.com/"

    If you are the plugin author please fix this error in the next version of Register-Plus.

    Thank you and have a nice day everyone.

  2. NasheedsNow.com
    Member
    Posted 5 years ago #

    Wow thank you so much musicmasteria. I thought I had to do away with Register Plus, but your fix solved the problem. I am very grateful. Thanks again for sharing.

  3. NasheedsNow.com
    Member
    Posted 5 years ago #

    Sorry I spoke to soon :(

    When I first load the page, everything appears all right, but upon subsequently reloading the page the error reappears.

    Looks like I'll be disabling Register Plus for now, since the author of the plugin doesn't seem to be updating it anymore.

  4. musicmasteria
    Member
    Posted 5 years ago #

    NasheedsNow.com, might want to go back and check to make sure you didn't miss anything.

    The problem was that a function was being run but nothing was being output (echo-ed) so the urls were messed up.

    Look for more lines that do the same and the plugin should work for you again.

    I do wish that the plugin author would work on his/her plugin more though... too bad.

  5. kutu
    Member
    Posted 5 years ago #

    heck guys its OPEN SOURCE - Can't you pick up the project, clean it up and rename it - just credit the guy that started it.

  6. musicmasteria
    Member
    Posted 5 years ago #

    I thought about that but I don't know how to "pick up" the project.

Topic Closed

This topic has been closed to new replies.

About this Topic