WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [PATCH] Use of undefined constant HTTP_HOST

[Resolved] [PATCH] Use of undefined constant HTTP_HOST

  • flynsarmy
    Member

    @flynsarmy

    With WP_Debug turned on I was getting:

    Notice: Use of undefined constant HTTP_HOST – assumed ‘HTTP_HOST’ in /path/to/wp-content/plugins/qrcode-wprhe/qrcode_wprhe.php on line 50

    Change

    $current_uri = 'http://' . $_SERVER[HTTP_HOST] . $_SERVER[REQUEST_URI] . '';

    to

    $current_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '';

    http://wordpress.org/extend/plugins/qrcode-wprhe/

Viewing 4 replies - 1 through 4 (of 4 total)
  • flynsarmy
    Member

    @flynsarmy

    Ipstenu you closed my other post when you shouldn’t have.

    They are separate issues and warrant separate issue entries. It’s stupid to clump them all together and you don’t see that behavior on any other issue tracker anywhere.

    Plugin Author Rene Hermenau
    Participant

    @renehermi

    Thanks flynsarmy. Great Job. It´s updated now.
    Unfortunately i do not get any notifications, when someone is opening a isse. Otherwiese i had fixed it sooner.

    Plugin Author Rene Hermenau
    Participant

    @renehermi

    It’s also also fixed your mentioned bug of missing </div> Thank you!

    Plugin Author Rene Hermenau
    Participant

    @renehermi

    Closed

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [PATCH] Use of undefined constant HTTP_HOST’ is closed to new replies.