Title: PHP Notice spamming debug.log
Last modified: July 29, 2021

---

# PHP Notice spamming debug.log

 *  Resolved [Neyl](https://wordpress.org/support/users/neyl8/)
 * (@neyl8)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-spamming-debug-log/)
 * Hi
 * after using your plugin, it starts spamming debug.log on each page load.
 * This is what it prints:
    `PHP Notice: Undefined index: REQUEST_METHOD in \wp-
   content\plugins\flying-scripts\html-rewrite.php on line 18`
 * Can you fix this?
    Thanks

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

 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-spamming-debug-log/#post-14717747)
 * [@neyl8](https://wordpress.org/support/users/neyl8/) you’re server might not 
   be sending REQUEST_METHOD. Contact your hosting provider to fix it.
 *  Thread Starter [Neyl](https://wordpress.org/support/users/neyl8/)
 * (@neyl8)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-spamming-debug-log/#post-14723969)
 * Or rather you could just update the code so it checks if it exists.
 *  Plugin Author [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * (@gijo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-spamming-debug-log/#post-14724190)
 * [@neyl8](https://wordpress.org/support/users/neyl8/) no, I don’t want to add 
   many “if.. else..” for such obvious things.

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

The topic ‘PHP Notice spamming debug.log’ is closed to new replies.

 * ![](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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gijo Varghese](https://wordpress.org/support/users/gijo/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/php-notice-spamming-debug-log/#post-14724190)
 * Status: resolved