Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1169 closed defect (bug) (fixed)

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

Reported by: roxeteer's profile roxeteer Owned by: ryan's profile 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 19 years ago.

Download all attachments as: .zip

Change History (3)

#1 @roxeteer
19 years ago

  • Patch set to No

#2 @ryan
19 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
19 years ago

Note: See TracTickets for help on using tickets.