WordPress.org

Support

Support » How-To and Troubleshooting » Call to undefined function body_class()

Call to undefined function body_class()

  • New installation of WP 3.0.1.
    No plugins active.
    Default theme.

    When I go to the site I get:

    Fatal error: Call to undefined function body_class() in ….. /web/content/wp-content/themes/twentyten/header.php on line 55

    Ideas?

    I looked through the forum but nothing is of much help unfortunately.

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    Upgrade to the latest version of WordPress.

    Last time I checked 3.0.1 is the latest.

    esmi

    @esmi

    Forum Moderator

    Correct but a) you didn’t indicate what version your were using and b) an “undefined function body_class()” suggest a pre-2.7 version.

    Sorry. I guess I assumed “new installation” would indicate it wasn’t an upgrade 😉

    Anyway, problem solved by downloading new wp and uploading all the files again.

    esmi

    @esmi

    Forum Moderator

    Unfortunately “new installation” doesn’t indicate what version was installed. Some hosts offer 1-click installs of WP that are a few versions behind. User installs a 3.0 theme. Result: same kind of error that you were getting. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call to undefined function body_class()’ is closed to new replies.
Skip to toolbar