Title: PHP warning: Undefined array key REQUEST_METHOD in html-rewrite.php
Last modified: May 16, 2026

---

# PHP warning: Undefined array key REQUEST_METHOD in html-rewrite.php

 *  [jafarsadiqu](https://wordpress.org/support/users/jafarsadiqu/)
 * (@jafarsadiqu)
 * [2 weeks, 6 days ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-request_method-in-html-rewrite-php/)
 * Hi,
 * We are seeing repeated PHP warnings from the Flying Scripts plugin in our server
   logs.
 * Plugin/file:
   wp-content/plugins/flying-scripts/html-rewrite.php
 * Exact warning:
   PHP Warning: Undefined array key “REQUEST_METHOD” in /wp-content/
   plugins/flying-scripts/html-rewrite.php on line 18
 * Environment:
    - WordPress / WooCommerce site
    - PHP 8.2
    - Standard WordPress/WooCommerce site, not headless
 * It looks like the plugin may be accessing `$_SERVER['REQUEST_METHOD']` directly
   without checking if the key exists first. This can generate warnings.
 * Could you please confirm if there is an updated version or recommended patch 
   for this issue?

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-undefined-array-key-request_method-in-html-rewrite-php%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/flying-scripts/assets/icon-256x256.png?rev=2240444)
 * [Flying Scripts: Delay JavaScript to Improve Site Speed & Performance](https://wordpress.org/plugins/flying-scripts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flying-scripts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flying-scripts/)
 * [Active Topics](https://wordpress.org/support/plugin/flying-scripts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flying-scripts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flying-scripts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jafarsadiqu](https://wordpress.org/support/users/jafarsadiqu/)
 * Last activity: [2 weeks, 6 days ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-request_method-in-html-rewrite-php/)
 * Status: not resolved