WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#1169 closed defect (bug) (fixed)

Files not included correctly in wp-feed.php when index.php has been moved

Reported by: roxeteer Owned by: ryan
Milestone: Priority: normal
Severity: major Version: 1.5
Component: General Keywords:
Focuses: Cc:

Description

If you move /wordpress/index.php to /index.php to fix problems with .htaccess mod_rewrite rules, wp-feed.php can't find the files it needs to include. You'll get these error messages:

Warning: main(): Unable to access wp-blog-header.php in /path/to/wordpress/wp-feed.php on line 5

Warning: main(wp-blog-header.php): failed to open stream: No such file or directory in /path/to/wordpress/wp-feed.php on line 5

Fatal error: main(): Failed opening required 'wp-blog-header.php' (include_path=) in /path/to/wordpress/wp-feed.php on line 5

This can be fixed by adding dirname(FILE) before the file name, just like it's done in wp-blog-header.php. Patched file is included in this report.

Attachments (1)

wp-feed.php (726 bytes) - added by roxeteer 13 years ago.

Download all attachments as: .zip

Change History (3)

#1 @roxeteer
13 years ago

  • Patch set to No

#2 @ryan
13 years ago

  • fixed_in_version set to 1.5.1
  • Owner changed from anonymous to rboren
  • Resolution changed from 10 to 20
  • Status changed from new to closed

@roxeteer
13 years ago

Note: See TracTickets for help on using tickets.