Ticket #4714 (closed defect: invalid)

Opened 1 year ago

Last modified 1 year ago

category feeds are incorrect

Reported by: peterryan Assigned to: anonymous
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
Cc:

Description

My wordpress install returns the wrong category feeds. For example if I go here:

http://www.peterryan.net/category/geek/feed/ and then http://www.peterryan.net/category/cooking/feed/

I get the correct feed for the 'geek' category but for 'cooking' I get the 'geek' feed.

I am using a Wordpress generated htaccess. This problem only exists when i use pretty permalinks.

The problem occurs in both the default and classic themes.

Change History

08/08/07 17:55:00 changed by markjaquith

  • status changed from new to closed.
  • resolution set to worksforme.

Can't reproduce locally, and when I visit your cooking feed as linked above, I see three entries about cooking. Figured it out?

08/08/07 19:16:46 changed by Otto42

  • summary changed from trac category feeds are incorrect to category feeds are incorrect.

I can reproduce his problem, using his site. He's got it backwards though, both his links appear to give his "cooking" feed.

http://www.peterryan.net/category/cooking/ has 3 entries. http://www.peterryan.net/category/geek/ has 4 entries.

http://www.peterryan.net/category/cooking/feed/ and http://www.peterryan.net/category/geek/feed/ both appear to give the feed for the cooking category. Although it's not consistent. Refreshing sometimes gives the correct information.

I cannot reproduce the problem on my own site, so I'd suggest that he disable any/all plugins and see if the problem goes away.

08/08/07 19:29:58 changed by peterryan

  • status changed from closed to reopened.
  • resolution deleted.

i have disabled all the plugins i had active (google analytics, askimet, and a google code syntax highlighter plugin).

the problem is sometimes reversed - it seems like something (again i don't know what it could be apache2, php5, or wordpress) is caching a result and it eventually times out.

the problem also occurs sometimes after i load a feed and try and go to what should be an HTML reponse and the result is XML.

right now (this is inconsistent) if I go to

http://www.peterryan.net/category/geek/feed/ i see the correct feed and then if i go to http://www.peterryan.net/category/geek i see the feed again where I really should see the html archive of the category.

something is wrong..I am not sure exactly what. if there is somewhere I could be looking or if there is a way (I am not familiar with php aside from it's most basic uses) I can send a better trace of what is going on please let me know.

08/08/07 19:39:24 changed by Otto42

The problem is not limited to your category feeds. When I hit http://www.peterryan.net/feed/ I also sometimes get the category feed instead.

I think something on your webserver is doing some kind of weird caching. Ask your host if there's any kind of caching enabled on Apache or PHP or what have you.

08/08/07 20:07:16 changed by leonid

One of the things to check is free disk space on that server. I remember having a similar problem long time ago, and there was an almost full hard disk. Cleaning it a bit solved the issue.

08/08/07 20:27:46 changed by peterryan

  • status changed from reopened to closed.
  • resolution set to fixed.

well i am doing all the hosting. i disabled mod_cache and mod_disk_cache, cleared /var/apache2/mod_disk_cache just in case, and cleared my browser cache the feeds worked again. i guess this means that mod_rewrite executes before mod_cache (which is causing a caching key conflict). I am not sure if this is something that should be resovled by by debian etch (for their apache config), mod_cache/mod_rewrite (for the order the execute), or myself (for something i did that screwed up the order, or the htaccess rewrite rules that wordpress generates are somehow causing the cache key conflict.

thanks for the help.

08/08/07 20:53:36 changed by santosj

Why don't you put mod_rewrite after mod_cache? If that indeed the problem?

08/09/07 04:41:58 changed by Sewar

  • status changed from closed to reopened.
  • resolution deleted.

08/09/07 04:42:23 changed by Sewar

  • priority changed from high to normal.
  • status changed from reopened to closed.
  • version deleted.
  • resolution set to invalid.