{"id":17443024,"date":"2024-02-21T15:01:12","date_gmt":"2024-02-21T15:01:12","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-warning-476\/"},"modified":"2024-02-21T15:01:12","modified_gmt":"2024-02-21T15:01:12","slug":"php-warning-476","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-warning-476\/","title":{"rendered":"PHP Warning"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When I run a few scripts on command line (or by cron, etc), I get this warning:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PHP Warning: Undefined array key \"HTTP_HOST\" in \/wp-content\/plugins\/opensheetmusicdisplay\/opensheetmusicdisplay.php on line 55<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This gets in the way of important messages in maintenance script outputs &#8211; is it possible to resolve this warning?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you!<\/p>\n","protected":false},"template":"","class_list":["post-17443024","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17443024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17443024\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17443024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}