Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3667 closed defect (bug) (invalid)

Illegal offset type error in WP 2.1 on PHP 4.3.9

Reported by: rbhute's profile rbhute Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.1
Component: General Keywords: Illegal offset type
Focuses: Cc:

Description

I'm getting the Illegal offset type error when using WP 2.1 on PHP 4.3.9. The error is logged in the error log in the following 3 locations:

/wp-includes/bookmark.php on line 137
/wp-includes/plugin.php on line 67   
/wp-includes/plugin.php on line 34

In addition I'm getting error code 500 which I suspect is because of this.

I've since downgraded to 2.0.7.

Change History (6)

#1 @andy
18 years ago

The plugin.php line numbers do not reveal a cause because these lines are executed many, many times in each page load, each time with different inputs. A debug backtrace would help us track this down.

As for bookmark.php, this is a big surprise. This is how the offset is created earlier in that function:

$key = md5( serialize( $r ) );

I don't know of any circumstance where $key would contain anything other than a 32-byte string. Can you var_dump $key just before 137?

#2 @rbhute
18 years ago

I'm using WP 2.0.7 as of now. I'll setup WP 2.1 on a sub-domain again and let you know the details. Is there anything I need to inform you from the output of phpinfo()? Do you need to take a look at the error logs?

#3 @foolswisdom
18 years ago

  • Milestone set to 2.2

#4 @rbhute
18 years ago

  • Resolution set to fixed
  • Status changed from new to closed

A second attempt with proper following of upgrade procedure fixed the problem. The secondary problem of connection being reset is a server issue I haven taken up with the host.

#5 @foolswisdom
18 years ago

  • Milestone 2.2 deleted
  • Resolution fixed deleted
  • Status changed from closed to reopened

#6 @foolswisdom
18 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.