[wp-trac] [WordPress Trac] #40164: Apace HTTP 414 error on deleting comments in bulk

WordPress Trac noreply at wordpress.org
Wed Mar 15 21:06:33 UTC 2017


#40164: Apace HTTP 414 error on deleting comments in bulk
---------------------------+------------------------------
 Reporter:  garethgillman  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Comments       |     Version:  4.7.3
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by bor0):

 Steps to reproduce:
 1. Create 400 comments programatically:
 {{{#!php
 <?php
 $data = array(
     'comment_post_ID' => 1,
     'comment_author' => 'admin',
     'comment_author_email' => 'admin at admin.com',
     'comment_author_url' => 'http://localhost/',
     'comment_content' => 'Comment content goes here',
     'user_id' => 1,
     'comment_author_IP' => '127.0.0.1',
     'comment_agent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
 rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)',
     'comment_date' => current_time('mysql'),
     'comment_approved' => 0,
 );

 for ( $i = 0; $i < 400; $i++ ) {
     wp_insert_comment( $data );
 }
 }}}
 2. Navigate to `wp-admin/edit-comments.php`
 3. Using the screen options, set Number of items per page: 200
 4. Click on `Pending (400)`
 5. Select `Comments` and click on `Filter`.
 6. Bulk select all and apply `Mark as Spam` action.
 7. Repeat 6.
 Error shows:
 {{{
 Request-URI Too Long

 The requested URL's length exceeds the capacity limit for this server.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40164#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list