[wp-trac] [WordPress Trac] #8946: Redirection after commenting leads to an empty page [not confirmed]

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 24 09:20:22 GMT 2009


#8946: Redirection after commenting leads to an empty page [not confirmed]
--------------------------+-------------------------------------------------
 Reporter:  DarkPepe      |       Owner:          
     Type:  defect (bug)  |      Status:  new     
 Priority:  low           |   Milestone:  2.7.1   
Component:  Comments      |     Version:  2.7     
 Severity:  minor         |    Keywords:  Comments
--------------------------+-------------------------------------------------
 Hi,

 I found this weird bug when starting a give away contest on my blog were
 the users need to post 20.000 comments to win a piece of hardware..
 anyway... after a few hundred comments (even on crazy rithm like 10
 comments per second) we found that every user was beeing redirected to an
 empty comment page after commenting.

 After further investigation, the reason seems to be related with comments
 wating for aproval.. they kind of "use a comment slot" but they aint show
 on the comment page, so if you post the comment #21, you will be
 redirected to the next comment page wich actually doesnt exists. (we are
 paginating the comments in sections of 20 per page).

 I cant confirm if this is a WP bug or my own comment template. The most
 extensive test was using another of my personal blogs and the problem
 seems to repeat there too, but again, could be my comment template
 programing.

 If you want to test it, this is the enviroment we have atm:

 - Paginated comments by 20. (displaying them with
 paginate_comments_links() function instead of reglar next/prev links)
 - At least 1 comment wating for moderation (not SPAM, just wating
 approval)
 - 19 visible comments on the page + the comment wating for aproval.
 - Then post the 20th comment (actually 21) and you must be redirected to
 comment page 2 wich doesnt exists.

 I hope the explanation is clear enought ... :)

 Cheers and Thank you.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8946>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list