[wp-trac] [WordPress Trac] #6669: Editing a post or page throws various Notices when WP_DEBUG is set

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 10 19:23:36 GMT 2008


#6669: Editing a post or page throws various Notices when WP_DEBUG is set
----------------------------+-----------------------------------------------
 Reporter:  simonwheatley   |       Owner:  anonymous              
     Type:  defect          |      Status:  new                    
 Priority:  normal          |   Milestone:  2.5.1                  
Component:  Administration  |     Version:  2.5                    
 Severity:  normal          |    Keywords:  has-patch needs-testing
----------------------------+-----------------------------------------------
 Steps to reproduce:

 1. Define the constant WP_DEBUG in wp_config.php

 2. Select the edit link from a single post page which has no tags

 3. Check the PHP error log, and you should see:

 Notice:Undefined variable: _wp_original_http_referrer in
 /Users/simon/Projects/WordPress-2.5/site/wp-admin/edit-form-advanced.php:6

 Notice:Undefined variable: original_title in
 /Users/simon/Projects/WordPress-2.5/site/wp-admin/includes/post.php:639

 Notice:Undefined property:  stdClass::$args in
 /Users/simon/Projects/WordPress-2.5/site/wp-includes/taxonomy.php:1066

 Notice:Undefined offset:  2 in /Users/simon/Projects/WordPress-2.5/site
 /wp-includes/rewrite.php(140) : eval()'d code:1

 Notice:Undefined index:  _wp_original_http_referer in
 /Users/simon/Projects/WordPress-2.5/site/wp-admin/edit-page-form.php:4

 Notice:Undefined variable: temp_ID in
 /Users/simon/Projects/WordPress-2.5/site/wp-admin/edit-page-form.php:26

 Notice:Undefined variable: post_ID in
 /Users/simon/Projects/WordPress-2.5/site/wp-admin/edit-page-form.php:32

 The proposed patch, edit_posts_no_tags.patch, supresses the errors caused
 by trying to access unset $_GET vars, sets or tests other vars/properties
 before using them in I statements, lowers the error reporting before
 evaling $query in rewrite.php

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


More information about the wp-trac mailing list