[wp-trac] [WordPress Trac] #14880: 404 Errors Replaced with Category Pages

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 15 23:06:28 UTC 2010


#14880: 404 Errors Replaced with Category Pages
--------------------------+-------------------------------------------------
 Reporter:  askapache     |       Owner:  scribu           
     Type:  defect (bug)  |      Status:  reviewing        
 Priority:  normal        |   Milestone:  3.1              
Component:  Query         |     Version:  3.1              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by askapache):

 {{{
 /doing-everything-i-can/?error=404&e=404&whereis-my-404
 }}}

 {{{
 WP_Query Object
 (
     [query_vars] => Array
         (
             [category_name] => doing-everything-i-can
             [error] =>
             [m] => 0
             [p] => 0
             [post_parent] =>
             [subpost] =>
             [subpost_id] =>
             [attachment] =>
             [attachment_id] => 0
             [name] =>
             [static] =>
             [pagename] =>
             [page_id] => 0
             [second] =>
             [minute] =>
             [hour] =>
             [day] => 0
             [monthnum] => 0
             [year] => 0
             [w] => 0
             [tag] =>
             [cat] => 0
             [tag_id] => 0
             [author_name] =>
             [feed] =>
             [tb] =>
             [paged] => 0
             [comments_popup] =>
             [meta_key] =>
             [meta_value] =>
             [preview] =>
             [s] =>
             [sentence] =>
             [category__in] => Array
                 (
                 )

             [category__not_in] => Array
                 (
                 )

             [category__and] => Array
                 (
                 )

             [post__in] => Array
                 (
                 )

             [post__not_in] => Array
                 (
                 )

             [tag__in] => Array
                 (
                 )

             [tag__not_in] => Array
                 (
                 )

             [tag__and] => Array
                 (
                 )

             [tag_slug__in] => Array
                 (
                 )

             [tag_slug__and] => Array
                 (
                 )

             [ignore_sticky_posts] =>
             [suppress_filters] =>
             [cache_results] => 1
             [update_post_term_cache] => 1
             [update_post_meta_cache] => 1
             [post_type] =>
             [posts_per_page] => 20
             [nopaging] =>
             [comments_per_page] => 50
             [no_found_rows] =>
             [order] => DESC
             [orderby] => ar15_posts.post_date DESC
         )

     [tax_query] => Array
         (
             [0] => Array
                 (
                     [taxonomy] => category
                     [terms] => Array
                         (
                             [0] => 0
                         )

                     [operator] => IN
                     [field] => term_id
                 )

         )

     [request] =>  SELECT SQL_CALC_FOUND_ROWS  ar15_posts.* FROM ar15_posts
 WHERE 1=1  AND ar15_posts.ID IN( ) AND ar15_posts.post_type = 'post' AND
 (ar15_posts.post_status = 'publish' OR ar15_posts.post_status = 'private')
 ORDER BY ar15_posts.post_date DESC LIMIT 0, 20
     [post_count] => 0
     [current_post] => -1
     [in_the_loop] =>
     [post] =>
     [comments] =>
     [comment_count] => 0
     [current_comment] => -1
     [comment] =>
     [found_posts] => 0
     [max_num_pages] => 0
     [max_num_comment_pages] => 0
     [is_single] =>
     [is_preview] =>
     [is_page] =>
     [is_archive] => 1
     [is_date] =>
     [is_year] =>
     [is_month] =>
     [is_day] =>
     [is_time] =>
     [is_author] =>
     [is_category] => 1
     [is_tag] =>
     [is_tax] =>
     [is_search] =>
     [is_feed] =>
     [is_comment_feed] =>
     [is_trackback] =>
     [is_home] =>
     [is_404] =>
     [is_comments_popup] =>
     [is_admin] =>
     [is_attachment] =>
     [is_singular] =>
     [is_robots] =>
     [is_posts_page] =>
     [is_paged] =>
     [query] => Array
         (
             [category_name] => doing-everything-i-can
         )

     [posts] => Array
         (
         )

     [queried_object] => WP_Error Object
         (
             [errors] => Array
                 (
                     [invalid_term] => Array
                         (
                             [0] => Empty Term
                         )

                 )

             [error_data] => Array
                 (
                 )

         )

     [queried_object_id] =>
 )


 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14880#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list