ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Unknown column 'date' in 'order clause'

May 11, 2013 3:20pm

Subscribe [6]
  • #1 / May 11, 2013 3:20pm

    fxidesigns

    131 posts

    After upgrading to 2.6.1 I am getting this error.  It seems there is a previous post which claims its a known issue in 2.6 (and the fix is applied in 2.6.1) however, I am still getting this error.

    Please HELP!!

    A Database Error Occurred
    Error Number: 1054

    Unknown column ‘date’ in ‘order clause’

    SELECT DISTINCT `exp_channel_titles`.`entry_id`, `exp_channel_titles`.`title` FROM (`exp_channel_titles`) WHERE `exp_channel_titles`.`channel_id` IN (‘1’) AND `exp_channel_titles`.`entry_date` <  368299973 AND (exp_channel_titles.expirati OR exp_channel_titles.expiration_date > 1368299973) AND `exp_channel_titles`.`entry_id` != ‘409’ ORDER BY `date` asc

    Filename: fieldtypes/relationship/ft.relationship.php

    Line Number: 359

  • #2 / May 12, 2013 2:53am

    Bhashkar Yadav

    727 posts

  • #3 / Jun 11, 2013 8:37pm

    MichaelSimone

    76 posts

    I’m having the same issue error as above running 2.6.1 when accessing CP Publish or Edit OR Standalone entry form except the latter produces the error shown below.

    Error Number: 1054

    Unknown column ‘date’ in ‘order clause’

    SELECT DISTINCT `exp_channel_titles`.`entry_id`, `exp_channel_titles`.`title` FROM (`exp_channel_titles`) WHERE `exp_channel_titles`.`channel_id` IN (‘4’) AND `exp_channel_titles`.`entry_date` <  370993455 AND (exp_channel_titles.expirati OR exp_channel_titles.expiration_date > 1370993455) ORDER BY `date` desc

    Filename: modules/safecracker/libraries/safecracker_lib.php

    Line Number: 2736

  • #4 / Jul 09, 2013 12:46am

    barryparr

    125 posts

    Michael:

    I’m having the same problem. Did you ever figure this out or get help on it?

  • #5 / Jul 24, 2013 3:48pm

    Tyas

    35 posts

    I just have midnight gift since install 2.6.1

    A Database Error Occurred
    Error Number: 1054

    Unknown column ‘’ in ‘order clause’

    SELECT DISTINCT `exp_channel_titles`.`entry_id`, `exp_channel_titles`.`title` FROM (`exp_channel_titles`) WHERE `exp_channel_titles`.`channel_id` IN (NULL) AND `exp_channel_titles`.`entry_date` <  374693963 AND (exp_channel_titles.expirati OR exp_channel_titles.expiration_date > 1374693963) AND `exp_channel_titles`.`entry_id` != ‘1357’ ORDER BY `

    Filename: fieldtypes/relationship/ft.relationship.php

    Line Number: 359

    But when the folder forum in system/expressionengine/modules/forum/ is empty then the problem will look like this

    An Error Was Encountered
    Unable to load requested publish tab file: tab.forum.php

    anyone have solution?

  • #6 / Jul 24, 2013 3:51pm

    Tyas

    35 posts

    just trying this https://support.ellislab.com/bugs/detail/19321 hope it works

  • #7 / Jul 24, 2013 11:29pm

    Tyas

    35 posts

    Just fix the problem with:
    1. copy old files (mine 2.5.5) from fieldtypes/rel/ft.rel.php—> to make admin/channel field working (still with error, but its able to change the setting)
    2. Then manually change all my relationships field Order entries by from Entry to Date

    That work for me to make the channel entry active again. But still have problem when i delete fieldtypes/rel/ft.rel.php

    An Error Was Encountered
    Unable to load requested field type file: ft.rel.php.
    Confirm the fieldtype file is located in the expressionengine/third_party/ directory

    still pointing to ft.rel.php , not to ft.relationship.php. any clue?

  • #8 / Jul 26, 2013 5:09pm

    MichaelSimone

    76 posts

    THE SOLUTION TO THIS PROBLEM IS SIMPLE!

    EE Screwed up in their naming of the Relationships Addon Fieldtype in the latest version by using the singular of the word.

    Simply go to Addons/fieldtypes and you should see 2 fieldtypes called Relationship and Relationships. UNINSTALL the singular “Ralationship” and this should take care of the problem. At least it did for me.

    Good Luck!

  • #9 / Jul 29, 2013 12:16am

    Tyas

    35 posts

    Oh Thanks MichaelSimone, it works.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases