[wp-trac] Re: [WordPress Trac] #9784: catchable fatal error - category template line 24

WordPress Trac wp-trac at lists.automattic.com
Mon May 11 02:52:21 GMT 2009


#9784: catchable fatal error - category template line 24
------------------------------------------------------+---------------------
 Reporter:  johnmyr                                   |        Owner:  anonymous
     Type:  defect (bug)                              |       Status:  reopened 
 Priority:  normal                                    |    Milestone:  2.8      
Component:  Template                                  |      Version:  2.8      
 Severity:  normal                                    |   Resolution:           
 Keywords:  category template, catchable fatal error  |  
------------------------------------------------------+---------------------
Changes (by greenshady):

  * status:  closed => reopened
  * resolution:  worksforme =>


Comment:

 Fails miserably in Kubrick for me too.

 Step by step:

 1) Set your permalinks to the default: `http://localhost/?p=123`.

 2) Add this code within The Loop in `index.php`:

 {{{
 <?php echo get_the_term_list( $post->ID, 'category', 'Posted in ', ', ',
 '' ); ?>
 }}}


 This error is produced:

 {{{
 Catchable fatal error: Object of class stdClass could not be converted to
 string in C:\xampp\htdocs\wp-includes\category-template.php on line 24
 }}}

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


More information about the wp-trac mailing list