{"id":18705354,"date":"2025-11-03T16:12:35","date_gmt":"2025-11-03T16:12:35","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/nagging-warning\/"},"modified":"2025-11-03T16:12:35","modified_gmt":"2025-11-03T16:12:35","slug":"nagging-warning","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/nagging-warning\/","title":{"rendered":"Nagging warning"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This warning:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Warning: Undefined array key &#8220;REQUEST_METHOD&#8221; in \/home\/customer\/www\/librairiewilsonlafleur.com\/public_html\/wp-content\/plugins\/sg-cachepress\/core\/Helper\/File_Cacher_Trait.php on line 17<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Shows up when crons are running through the Site Tools. We changed the code for this snippet to silence it, but we thought it could be useful to make you aware of it:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>if ( isset( $_SERVER['REQUEST_METHOD'] ) &amp;&amp; $_SERVER['REQUEST_METHOD'] !== 'GET' ) { \/\/phpcs:ignore<br \/>    return;<br \/>}<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If there&#8217;s a follow-up or a better fix, let us know.<\/p>\n","protected":false},"template":"","class_list":["post-18705354","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18705354","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\/18705354\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18705354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}