Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#15011 closed defect (bug) (invalid)

WP_Http fails to load some conditions

Reported by: cthomas_engauge's profile cthomas_engauge Owned by:
Milestone: Priority: normal
Severity: major Version: 3.1
Component: HTTP API Keywords:
Focuses: Cc:

Description

I'm experiencing an issue where when you redirect to wordpress from another server, WP_Http is instantiated before the class has been loaded.

PHP Fatal error: Class 'WP_Http' not found in /usr/local/www/production/engauge.com/docroot/wp-includes/http.php on line 26
PHP Fatal error: Class 'WP_Http' not found in /usr/local/www/production/engauge.com/docroot/wp-includes/http.php on line 26
PHP Fatal error: Class 'WP_Http' not found in /usr/local/www/production/engauge.com/docroot/wp-includes/http.php on line 26
PHP Fatal error: Class 'WP_Http' not found in /usr/local/www/production/engauge.com/docroot/wp-includes/http.php on line 26
PHP Fatal error: Class 'WP_Http' not found in /usr/local/www/production/engauge.com/docroot/wp-includes/http.php on line 26

Attachments (1)

http.php.patch (404 bytes) - added by cthomas_engauge 15 years ago.
Patch file

Download all attachments as: .zip

Change History (5)

@cthomas_engauge
15 years ago

Patch file

#1 in reply to: ↑ description @nacin
15 years ago

Replying to cthomas_engauge:

I'm experiencing an issue where when you redirect to wordpress from another server, WP_Http is instantiated before the class has been loaded.

I'm not sure what that means or what you're trying to do, but class-http.php is always included by core, so there's no reason to conditionally include class-http.php as it should always exist.

#2 @cthomas_engauge
15 years ago

  • Cc cthomas_engauge added
  • Resolution set to fixed
  • Status changed from new to closed

Specifically I'm finding events in my error log that show that sometimes wordpress is trying to instantiate the object, but class-http.php is not loaded. I'm running a hybrid child theme called skeleton and no plugins.

#3 @nacin
15 years ago

  • Milestone Awaiting Review deleted
  • Resolution fixed deleted
  • Status changed from closed to reopened

WordPress core includes class-http.php right after it includes http.php. So I'm thinking you have something else going on here.

#4 @nacin
15 years ago

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