• I upgraded from 1.5 to 1.5.1.2 and this is the message I receive in the sidebar. Everything else works fine:

    WordPress database error: [Unknown column ‘cat_sort_column’ in ‘order clause’]
    SELECT cat_ID, cat_name, category_nicename, category_description, category_parent FROM wp_categories WHERE cat_ID > 0 ORDER BY cat_sort_column=name asc

    Warning: Invalid argument supplied for foreach() in /home2/kikidea/public_html/kikthinking/wp-includes/template-functions-category.php on line 309
    * No categories

    you can check it out yourself at http://www.kikthinking.com

    – kevin

Viewing 4 replies - 1 through 4 (of 4 total)
  • What is in your template in the sidebar that is causing those errors ?

    Thread Starter kikthinking

    (@kikthinking)

    it’s supposed to be just the main categories (i use it as a main menu section).

    <!– begin sidebar –>
    <div id=”side”>

      <li id=”categories”>
      <h2>

      <?php _e(‘MAIN MENU’); ?>
      </h2>

      <?php list_cats(0, ”, ‘sort_column=name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>

    <BR><HR>

    <?php if (function_exists(‘wp_theme_switcher’)) { ?>

    • <h2>
      <?php _e(‘INTERESTING PLACES’); ?>
      <?php _e(‘Themes’); ?>
      </h2>
      <?php wp_theme_switcher(); ?>
    • <?php } ?>

      <li id=”archives”>
      <h2>
      <?php _e(‘archive’); ?>
      </h2>

      <?php wp_get_archives(‘type=monthly’); ?>

    <?php get_links_list(); ?>

    <li id=”search”>
    <label for=”s”>
    <form id=”searchform” method=”get” action=”<?php bloginfo(‘url’); ?>/index.php”>
    <div>
    <input type=”text” name=”s” size=”18″ />
    <br>
    <input type=”submit” id=”submit” name=”Submit” value=”Search” />
    </div>
    </form>

    Change your call to list_cats to the following:


    list_cats('optionall=0&sort_column=name&sort_order=asc')

    This will explain more:
    http://codex.wordpress.org/Template_Tags/wp_list_cats

    Regards

    Thread Starter kikthinking

    (@kikthinking)

    fixed! thanx a lot!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress Database Error from Upgrading’ is closed to new replies.