WordPress.org

Ready to get started?Download WordPress

Forums

Call to undefined function body_class() (6 posts)

  1. mnystedt
    Member
    Posted 3 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Upgrade to the latest version of WordPress.

  3. mnystedt
    Member
    Posted 3 years ago #

    Last time I checked 3.0.1 is the latest.

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  5. mnystedt
    Member
    Posted 3 years ago #

    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.

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    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. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.