PHP Notice: Undefined index: REQUEST_METHOD in
-
Hi.
This text is translated using DeepL.When this plugin is enabled, the following notification is logged in debug.log every 15 minutes.
PHP Notice: Undefined index: REQUEST_METHOD in /wp-content/plugins/ip-location-block/classes/class-ip-location-block.php on line 118
It can be erased by modifying it as follows
elseif ( 'POST' === $_SERVER['REQUEST_METHOD'] && 'trackback' === basename( $this->request_uri ) ) { ↓ elseif ( 'POST' === isset( $_SERVER['REQUEST_METHOD'] ) && 'trackback' === basename( $this->request_uri ) ) {
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PHP Notice: Undefined index: REQUEST_METHOD in’ is closed to new replies.