WordPress.org

Ready to get started?Download WordPress

Forums

WP function body_class throws error with PHP 5.2 (1 post)

  1. Sayontan Sinha
    Member
    Posted 3 years ago #

    Hello,
    I believe this is more of a PHP bug rather than a WP bug, however I thought I should bring this to note. If you use the native WP function body_class() with PHP 5.2 you get this error:

    Catchable fatal error: Object of class stdClass could not be converted to string in /home2/swagger5/public_html/blogoodle/wp-includes/post-template.php on line 432

    PHP 5.2 had an issue with chained statements, hence this error.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Sayontan Sinha
  • This topic is not a support question
  • WordPress version: 3.0