The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Sayontan Sinha
    Posted 6 years ago #

    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 6 years ago by Sayontan Sinha
  • This topic is not a support question
  • WordPress version: 3.0