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.

Logging in to website produces error

September 01, 2011 6:16am

Subscribe [1]
  • #1 / Sep 01, 2011 6:16am

    Ace Prod

    111 posts

    We are getting the following error when members login to the website - not the control panel, but the main members area of the website.

    SELECT t.entry_id FROM exp_weblog_titles AS t LEFT JOIN exp_weblogs ON t.weblog_id = exp_weblogs.weblog_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id WHERE t.entry_id !='' AND t.site_id IN ('1') AND t.entry_date < 1314863074 AND (t.expiration_date = 0 OR t.expiration_date > 1314863074) AND exp_weblogs.is_user_blog = 'n' AND t.weblog_id = '11' AND t.status = 'open' ORDER BY FIELD(t.entry_id, ) LIMIT 0, 3

    We haven’t changed anything to core files.
    Site works fine when logged out.

    I have run the query through phpmyadmin and it appears to be a problem with the comma in ORDER BY FIELD(t.entry_id, ).

    Can anyone help? Please?!

  • #2 / Sep 01, 2011 6:43am

    Ace Prod

    111 posts

    Homepage works fine by the way, and this has lots of calls to different weblogs.

  • #3 / Sep 01, 2011 7:32am

    Ace Prod

    111 posts

    OK, I’ve worked out that it’s only happening for super admins and it’s because debug preference is set to show only to super admins.

    However, I am confused as this message has only just started showing up, and for pages that haven’t been touched in ages.

    We need to get this error fixed so any ideas would be welcome!

  • #4 / Sep 01, 2011 11:48am

    Ace Prod

    111 posts

    Weirdly, this now seems to be working…with no input from me!

    Please close the thread.

  • #5 / Sep 01, 2011 4:12pm

    Lisa Wess

    20502 posts

    Hi, David -

    No problem, glad to see it’s working again.  If it does start repeating, please let us know and we’ll help troubleshoot.

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

ExpressionEngine News!

#eecms, #events, #releases