#6460 closed defect (bug) (fixed)
Feed PHP files show no posts when WP has it's own directory
| Reported by: | Viper007Bond | Owned by: | westi |
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | 2.6 |
| Component: | General | Version: | 2.5 |
| Severity: | critical | Keywords: | has-patch |
| Cc: | Focuses: |
Description
I have all plugins disabled on my personal blog, but wp-rss2.php and it's siblings are all displaying no posts. They aren't blank, just no posts to display.
However, the pretty URLs work just fine (I've disabled my FeedBurner mod_rewrite redirect rules for the moment).
Works: http://www.viper007bond.com/feed/
Nope: http://www.viper007bond.com/wordpress/wp-rss2.php
Works: http://www.viper007bond.com/feed/atom/
Nope: http://www.viper007bond.com/wordpress/wp-atom.php
The exact same thing is happening on another WordPress install on the same server too:
http://www.finalgear.com/wordpress/wp-rss2.php
It still has active plugins though.
phpinfo(): http://www.viper007bond.com/phpinfo.php
MySQL 5.0.45
Attachments (1)
Change History (27)
#1
@
18 years ago
- Keywords needs-patch added
- Summary All feed PHP files return no posts, pretty URLs do → Feed PHP files are blank when WP has it's own directory
#2
@
18 years ago
Yup, Confirmed it with my blog having a HomeURL != SiteURL
http://dd32.id.au/wordpress/wp-rss2.php - doesnt work
http://dd32.id.au/feed/ - works
#3
@
18 years ago
- Summary Feed PHP files are blank when WP has it's own directory → Feed PHP files show no posts when WP has it's own directory
#4
@
18 years ago
- Owner changed from to
- Status new → assigned
Does this exist in 2.3.3 ?
If so it may relate to [4551]
#6
@
18 years ago
Ok. It seems to work fine in my local test with permalinks disabled.
Now to try with them enabled.
#7
@
18 years ago
Definitely doesn't work with permalinks enabled.
It matches as a page lookup instead.
I have a fix which I will land in trunk for now and get some feedback/review before back porting to 2.5.1
#13
@
18 years ago
I would like to try this patch and see if it fixes #6484
Where is the patch? What files were modified/changed?
I tried to figure it out, but don't know my way around trac well enough yet.
Thanks
#14
@
18 years ago
There is no patch attached to this ticket. Westi made a patch and commited it directly, without adding it to trac.
But if you click on the [7583] there is a link at the bottom called "Unified Diff".
#16
@
18 years ago
- Resolution fixed
- Status closed → reopened
[7583] has broken HomeURL == SiteURL, See [wp-testers] Feeds not publishing on 2.5.1
The issue is that the slash is not present when WP is installed in the current directory, I'll attach a patch, the Db version will need to be bumped. (Patch against trunk)
#17
@
18 years ago
[7583] has broken HomeURL == SiteURL
By that, I mean:
HomeURL == SiteURL:
- /feed/ = works
- /?feed=rss2 = works
- /wp-rss2.php = doesnt work.
#19
@
18 years ago
- Milestone 2.5.1 → 2.5.2
- Resolution fixed
- Status closed → reopened
Re-open for 2.5.2
#21
@
18 years ago
- Resolution fixed
- Status closed → reopened
I've applies the latest changes to my rewrite.php and version.php files and direct access to files such as wp-atom.php still fails to produce output.
HomeURL == SiteURL
- /feed/ = works
- /?feed=rss2 = works
- /wp-rss2.php = doesnt work.
#22
@
18 years ago
I've applies the latest changes
Have you accessed the admin page to cause a database upgrade page to come up?
D
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Okay, I got how to duplicate it! If
siteurl != homeurl, it breaks, i.e. if WordPress is in it's own directory.I made a nice and fresh new WordPress install and both
/feed/and/wp-rss2.phpworked fine. Then I moved the WordPress files and/feed/worked while/subdirectory/wp-rss2.phpdid not.As to why this is happening is beyond me. I don't know the feed code well enough.