WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [2.0 RC1 Bug?] WordPress database error (7 posts)

  1. gregbd
    Member
    Posted 8 years ago #

    I get this error plus the calendar does not show up the correct month..

    WordPress database error: [Unknown column 'user_level' in 'where clause']
    SELECT COUNT(*) FROM wp_users WHERE user_level > 1

  2. bob58
    Member
    Posted 8 years ago #

    I'm not sure about this, but as I upgraded to 2.0 RC1 a few hours ago, I had a look into it. The database field user_level is no longer available in 2.0.

    Maybe you are using a theme that is adressing the database directly ... if you are using a special theme, try the standard theme coming with 2.0 RC1 and see if the error still occurs.

  3. gregbd
    Member
    Posted 8 years ago #

    You were right. I changed the theme and that error disappeared. I wonder where I should look for 'user_level'?

  4. bob58
    Member
    Posted 8 years ago #

    It might be best to look into The Main Index Template (index.php) [Themes - Theme Editor - Main Index Template]. It looks like it's right between the post's headline the_title() and the post's text the_content() ...

    Hope it helped ...

  5. gregbd
    Member
    Posted 8 years ago #

    I found that in theloop.php Thanks!

  6. rizwan
    Member
    Posted 8 years ago #

    Hi!

    I've just updated to the "stable build" of WP 2.0 and I'm getting this error as well on the K2 theme. Any ideas on a fix?

  7. rizwan
    Member
    Posted 8 years ago #

    ah, i seem to have found it. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags