WordPress.org

Forums

QR Code Generator
[resolved] [PATCH] Use of undefined constant HTTP_HOST (5 posts)

  1. flynsarmy
    Member
    Posted 2 years ago #

    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/

  2. flynsarmy
    Member
    Posted 2 years ago #

    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.

  3. Rene Hermenau
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  4. Rene Hermenau
    Member
    Plugin Author

    Posted 2 years ago #

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

  5. Rene Hermenau
    Member
    Plugin Author

    Posted 2 years ago #

    Closed

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • QR Code Generator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic