WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Error.. after upgrade..

[Resolved] Error.. after upgrade..

  • Well I upgraded.. (my default theme didn’t work so i installed k2, i’m geting an error now..

    http://www.chrisvschris.com

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

    any thoughts..?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry, we do not support K2 here. The official support for K2 is here: http://flickr.com/groups/binarybonsai/

    k2 is the culprit here. It is attempting to query on a field that does not exist in the WordPress 2.0 schema.

    The fix is quite easy.

    Open theloop.php in a text editor, and make these two changes:

    Line 75:
    Published by <?php the_author_posts_link(); ?>

    Line 108:
    Published by <?php the_author_posts_link(); ?>

    If you only have one author (that’s what the original line tries to detect), then you can simply change both lines to:
    Published

    That should remove the error and get the theme working mostly as expected.

    There is not a simple query that can easily replace the one that is used.

    What if I hav ethree authors..?

    Nevermind Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Error.. after upgrade..’ is closed to new replies.
Skip to toolbar