Support » Fixing WordPress » Error message in sidebar after 2.1 upgrade

  • After 2.1 install, I am seeing this in my sidebar [Kubrick] in one specific area. The rest of the site looks fine.

    WordPress database error: [Unknown column ‘cat_’ in ‘order clause’]
    SELECT * FROM wp_categories WHERE cat_ID > 0 AND link_count > 0 ORDER BY cat_-1 ASC

    I’m not sure what this means.



Viewing 5 replies - 1 through 5 (of 5 total)
  • I removed a snippet of code in the sidebar template that made reference to ‘get_links’ and the error vanished …


    Somewhere in your sidebar, something is making a call to get_links_list or similar in an incorrect fashion.

    To sort it out, you’ll have to be more specific. What section of the sidebar is doing this? What’s the code that’s in that piece?

    Having the same problem here. If I remove the code that refers to links, however, then I have no links/blogroll at all in my sidebar.

    Here is the piece of code in my sidebar that is causing the problem, if anyone wants to advise…

    <div class="menuItem">
    	<?php get_links_list('-1', '<li>', '</li>', ' '); ?></li>

    Change this
    php get_links_list

    to this

    php wp_list_bookmarks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error message in sidebar after 2.1 upgrade’ is closed to new replies.