Title: PHP Warning
Last modified: February 21, 2024

---

# PHP Warning

 *  Resolved [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/)
 * When I run a few scripts on command line (or by cron, etc), I get this warning:
 *     ```wp-block-code
       PHP Warning: Undefined array key "HTTP_HOST" in /wp-content/plugins/opensheetmusicdisplay/opensheetmusicdisplay.php on line 55
       ```
   
 * This gets in the way of important messages in maintenance script outputs – is
   it possible to resolve this warning?
 * Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [OSMD](https://wordpress.org/support/users/opensheetmusicdisplay/)
 * (@opensheetmusicdisplay)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/#post-17445960)
 * Thanks for bringing this to our attention!
   We will be releasing a new version
   of the plugin this morning that will contain a fix for this (among other things).
   Will update you soon!
 *  Thread Starter [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/#post-17446091)
 * Awesome, you’re amazing!
 *  Plugin Author [OSMD](https://wordpress.org/support/users/opensheetmusicdisplay/)
 * (@opensheetmusicdisplay)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/#post-17446120)
 * We’ve just released version 1.4.0 which contains this fix ([https://wordpress.org/plugins/opensheetmusicdisplay/](https://wordpress.org/plugins/opensheetmusicdisplay/))
   
   Please let us know if this resolves the problem for you, and if you run into 
   any other issues. Thanks again!
 *  Thread Starter [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/#post-17446142)
 * Sweeeeeet! Looks like that cleared up the warnings! HUGE thank you!!!
 * (Funny thing, I’ve been living with this for a long time, just didn’t take the
   time to report it – should have a long time ago!!!)
 *  Plugin Author [OSMD](https://wordpress.org/support/users/opensheetmusicdisplay/)
 * (@opensheetmusicdisplay)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/#post-17446180)
 * Fantastic! Glad it worked out for you.
   Sorry it has plagued you for so long! 
   But thanks for reporting it 😀
 *  Thread Starter [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * (@jfacemyer)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/#post-17446186)
 * LOL, I can stop cursing you guys now, and my dreams will be peaceful. (jk!)
 * Seriously, so happy for your responsiveness!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/opensheetmusicdisplay/assets/icon.svg?rev=2477993)
 * [OpenSheetMusicDisplay](https://wordpress.org/plugins/opensheetmusicdisplay/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/opensheetmusicdisplay/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/opensheetmusicdisplay/)
 * [Active Topics](https://wordpress.org/support/plugin/opensheetmusicdisplay/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/opensheetmusicdisplay/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/opensheetmusicdisplay/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [JF::IA](https://wordpress.org/support/users/jfacemyer/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/php-warning-476/#post-17446186)
 * Status: resolved