Project

General

Profile

Bug #121

PHP Notice

Added by Mark Webster over 2 years ago. Updated 3 months ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Target version:
Start date:
05/20/2015
Due date:
% Done:

0%

Estimated time:
0.25 h

Description

[20-May-2015 20:40:01 UTC] PHP Notice: Undefined index: REQUEST_METHOD in /wp-content/plugins/bad-behavior/bad-behavior/core.inc.php on line 88
[20-May-2015 20:40:01 UTC] PHP Stack trace:
[20-May-2015 20:40:01 UTC] PHP 1. {main}() /wp-cron.php:0
[20-May-2015 20:40:01 UTC] PHP 2. require_once() /wp-cron.php:26
[20-May-2015 20:40:01 UTC] PHP 3. require_once() /wp-load.php:37
[20-May-2015 20:40:01 UTC] PHP 4. require_once() /wp-config.php:193
[20-May-2015 20:40:01 UTC] PHP 5. include_once() /wp-settings.php:180
[20-May-2015 20:40:01 UTC] PHP 6. bb2_start() /wp-content/plugins/bad-behavior/bad-behavior-wordpress.php:198

Please change the code to

if (isset($_SERVER['REQUEST_METHOD']) && (!strcasecmp($_SERVER['REQUEST_METHOD'], "POST") || !strcasecmp($_SERVER['REQUEST_METHOD'], "PUT"))) {

History

#1 Updated by Michael Hampton over 2 years ago

  • Tracker changed from Feature to Bug

#2 Updated by Michael Hampton almost 2 years ago

  • Status changed from New to Accepted

#3 Updated by Michael Hampton 3 months ago

  • Status changed from Accepted to Resolved
  • Target version set to 2.2.20

Fixed in 2.2.20 (r1732390).

Also available in: Atom PDF