WordPress.org

Ready to get started?Download WordPress

Forums

Error message in sidebar after 2.1 upgrade (6 posts)

  1. pfigg
    Member
    Posted 7 years ago #

    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.

    Thanks.

    -ptfigg.

  2. pfigg
    Member
    Posted 7 years ago #

    I removed a snippet of code in the sidebar template that made reference to 'get_links' and the error vanished ...

    -ptfigg.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    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?

  4. greypilgrim
    Member
    Posted 7 years ago #

    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.

  5. greypilgrim
    Member
    Posted 7 years ago #

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

    <div class="menuItem">
    	<ul>
    	<?php get_links_list('-1', '<li>', '</li>', ' '); ?></li>
    </ul>
    </div>
  6. Samuel B
    moderator
    Posted 7 years ago #

    Change this
    php get_links_list

    to this

    php wp_list_bookmarks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.