[wp-trac] Re: [WordPress Trac] #8179: query_posts + showposts +
permalinks = 404
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 12 20:06:08 GMT 2008
#8179: query_posts + showposts + permalinks = 404
--------------------------------------------------------------------+-------
Reporter: wp_guy | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version: 2.7
Severity: major | Resolution:
Keywords: query_posts, showposts, posts_per_page, permalink, 404 |
--------------------------------------------------------------------+-------
Comment (by wp_guy):
>I can't reproduce this.
Really? are you sure? have you tried going further back? I think it
depends on the number of posts.
e.g. [[BR]]
7 posts: 1st page ok (posts 1 and 2) WP must somehow think it's showing
1-5, [[BR]]
2nd page ok (posts 3 and 4) WP must think it's showing 6-7, [[BR]]
3rd 404 error, I suppose because posts 10 to 15 don't exist (?)
if I add an error_log($GLOBALS['wp_query']->query_vars['posts_per_page'])
I can see it go from '2' on the pages that work to '5' when I get the 404
error. Don't know if that matters.
There is a number of forum post on the matter. This one for example
[http://wordpress.org/support/topic/197628]
> Are you sure that your {{{$query_string}}} variable consistently ends
with an ampersand?
I'm sure... I just forgot to add it when I submitted the ticket.
--
Ticket URL: <http://trac.wordpress.org/ticket/8179#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list