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 into CP Produces Error

July 09, 2011 9:59pm

Subscribe [2]
  • #1 / Jul 09, 2011 9:59pm

    wbdzynr

    137 posts

    I created a new “Admin” group in preparation for handing off to my client.  I created a new “Admin” group “based off an existing group” (which was the Super Admin group).  I didn’t change any settings yet.  I customized some of the Publish screens for the Admin group, removing the options and tabs that they didn’t need.  Otherwise, they had “Super” admin powers.

    I added my new “Admin” users, and upon testing their login, I received the following error message:

    A Database Error Occurred
    
    Error Number: 1064
    
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY edit_date DESC LIMIT 12' at line 4
    
    SELECT t.entry_id, t.channel_id, t.title, t.entry_date, c.channel_title FROM exp_channel_titles as t, exp_channels as c WHERE t.channel_id = c.channel_id AND t.channel_id IN () ORDER BY edit_date DESC LIMIT 12
    
    Filename: C:\MYSERVERPATH\webroot\SYSTEM\codeigniter\system\database\DB_driver.php
    
    Line Number: 330

    I changed the user to “Super Admin”, and was able to log in without a problem.  As soon as I switch them back, I get the error message.

    I thought it might be related to the Zoo Flexible Admin module, so I uninstalled it.  Still get the same error message.

    I’m running EE 2.2.1. Thanks for your thoughts!

    Todd

  • #2 / Jul 10, 2011 5:12pm

    wbdzynr

    137 posts

    SOLVED

    I deleted the group, then recreated it (again, based off existing group of Super Admin).  I then moved my user back to the new admin group, and was able to log in without any problems.

    Not sure what happened, but it seems to be working now!

    Todd

  • #3 / Jul 11, 2011 8:29am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases