WordPress.org

Ready to get started?Download WordPress

Forums

'name' in query string creates 404 (8 posts)

  1. RavanH
    Member
    Posted 3 years ago #

    Hi,

    This is a weird issue I stumbled on just now:

    If there is ?name=anythingatall (or &name=anythingatall) appended to any URL, WordPress responds with a 404 page.

    Even WordPress.com shows this behaviour!

    I found some very old and closed forum topics about it so it's been there for a long time:
    http://wordpress.org/support/topic/name-variable-in-url-creates-404
    http://wordpress.org/support/topic/strange-404-behaviour
    http://wordpress.org/support/topic/plugin-contact-form-7-form-action-directs-to-404
    http://wordpress.org/support/topic/posting-a-ltformgt-to-the-same-page-returns-a-404
    http://wordpress.org/support/topic/plugin-contact-form-7-submit-redirecting-to-404-page

    But none of them provide an answer on HOW to prevent WP to stumble over "name=..." or even on WHY this is happening.

    I am guessing this not not a bug but by design. But why... Is "name" reserved for anything like User Name internally?

    Can anyone shed some light on this?

  2. Pat Friedl
    Member
    Posted 3 years ago #

    I'm running into the same problem. I have a plugin that users must activate. When they activate (signing up to my Aweber list), they get redirected back to their blog and the redirect contains a Querystring.

    The problem comes from about 1 in 30 users getting a 404 error when they do this. I've done extensive testing and I can't get this problem to resolve, and what's worse is that there doesn't seem to be a pattern that causes it.

    Help!

  3. pete_398
    Member
    Posted 3 years ago #

  4. Pat Friedl
    Member
    Posted 3 years ago #

    That would be excellent IF I had control of everybody's WordPress config. However, I can't tell people to edit their config to unset the "name" param in the querystring so they can activate my plugin.

    That would work on my sites, but I'd rather the WP guys fix it if at all possible...

  5. pete_398
    Member
    Posted 3 years ago #

    That would work on my sites, but I'd rather the WP guys fix it if at all possible...

    Yes, it is definitely a bug.

  6. RavanH
    Member
    Posted 3 years ago #

    If it's a bug, I am surprised it's been around for such a long time: The oldest thread on the topic I found is from version 2.2 !!

    But if it is by design, I really wonder: WHY !?

    Anyway, glad I'm not the only one regarding this behaviour as a problem ;)

  7. pete_398
    Member
    Posted 3 years ago #

    Maybe it's a bug by design ?

  8. RavanH
    Member
    Posted 3 years ago #

    Hèhè... like an easter-egg?

    Maybe the name parameter was/is needed to pull this one off: http://www.youtube.com/watch?v=gkF4WLSkz-U ... And we are now witnessing a "Matrix 404 side-effect" ;)

Topic Closed

This topic has been closed to new replies.

About this Topic