Ticket #1169 (closed defect (bug): fixed)

Opened 7 years ago

Last modified 7 years ago

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

Reported by: roxeteer Owned by: ryan
Priority: normal Milestone:
Component: General Version: 1.5
Severity: major Keywords:
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

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

Change History

  • Patch set to No

comment:2   ryan7 years ago

  • Owner changed from anonymous to rboren
  • fixed_in_version set to 1.5.1
  • Status changed from new to closed
  • Resolution changed from 10 to 20
Note: See TracTickets for help on using tickets.