Support » Fixing WordPress » http_get for a plugin

  • Resolved whooami



    oh dear.

    So ok, I need to be able to RELOAD a page added via a plugin, like so:


    However I get a friendly message telling me :

    Cannot load that.php?action=some.

    complete with the period.

    is there a way to to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin


    So… your variables are:
    page = ‘that.php?action=some’
    thing = ‘5’

    Somehow, I don’t think that was what you wanted.

    You can’t include a second question mark in a URL like that. Are you trying to pass query variables to that.php? If so, then you’ll need to have this.php recognize and pass along those query variables itself.




    Yeah, I typo’d.

    pages added to wp-admin typically are added as subpages, ie, like so:


    where thing.php is the added plugin page, and options-general.php is the parent page.

    My variables are action=some AND thing=5 and I need those to be sent to this.php which is a child of a regular admin page.

    The url ends up being like this:


    but hmm.. the second question mark .. I just read that. 🙂

    Lets go see 🙂

    that was it, thank you Otto! Ive been working on this thing for way too long.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Again, you can’t do that. You cannot include a second question mark in the URL.

    Do it like this instead.

    The parent.php is not redirecting you to child.php. Child.php is being loaded by parent.php. This makes all the difference.

    Edit: I see your edit. Glad it works. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘http_get for a plugin’ is closed to new replies.