Forums

Sidebar Link Error with Upgrade (7 posts)

  1. svgal
    Member
    Posted 5 years ago #

    I'm getting an error message about getting my links (in my case it's the blogroll). Here's the message: WordPress database error: [Unknown column 'cat_order' in 'order clause']
    SELECT * FROM wp_categories WHERE cat_ID > 0 AND link_count > 0 ORDER BY cat_order ASC

    Can anyone tell me what I need to do to fix this?

  2. weefselkweekje
    Member
    Posted 5 years ago #

    I had the same problem. Turns out I had copy-pasted the get_link_list code straight out of the codex, without replacing 'order' by either 'id' or 'name'... :o Oops.

  3. boyd
    Member
    Posted 5 years ago #

    I have the exact same problem.
    Interesting thing is that with a "theme" like "connections" or "pool" - the sidebar with all my bloglinks work, no problem But with the "WordPress Default 1.6 by Michael Heilemann" or the "K2 0.95 RC1" I get the same error message as stated above...

    Any help is highly appreciated!

    (by the by my page, in Swedish, is http://www.goldkette.se)

  4. Derek Punaro
    Member
    Posted 5 years ago #

    I'm having the same problem. I thought I might have modified the sidebar code, so I copied the code from Default 1.6 and I'm still getting the error.

  5. Derek Punaro
    Member
    Posted 5 years ago #

    I found it. It seems that the parameters for get_links_list() has changed. I used to use get_links_list('order') but according to the Codex page the only values allowed now are 'name' or 'id'.

  6. boyd
    Member
    Posted 5 years ago #

    Punaro!

    Thanks for the input. I'll certainly try this - albeit, I'm one who regards code as something scary ;)

    Boyd

  7. boyd
    Member
    Posted 5 years ago #

    Punaro!

    Thanks for the input. I'll certainly try this - albeit, I'm one who regards code as something scary ;)

    Boyd

  8. lernstnet
    Member
    Posted 4 years ago #

    I am having the same problem. I understand that the fix is to replace 'order' with either 'id' or 'name.' I don't understand which file needs this fix. I have looked at wp-config.php and sidebar.php and neither has 'order' in them. Please advise where this fix needs to happen.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags