2013-01-20, 06:10 AM
When I am logged in as the main (uid=1) Admin account, I can access everything perfectly... but I just realized that anybody I assign as a Mod or ANY level of Admin, cannot access the Mod CP area due to a MySQL error they get.
I have tried the "disable all plugins" option found in the general settings to confirm that a plugin is not responsible. The error still happens when ALL plugins are off.
When they try to go to modcp.php, they get this error:
If they try going to modcp.php?action=modqueue they get this error:
If they try to go to modcp.php?action=modlogs they get this error:
...but again, the strangest part about this is that I have always been able to access ALL these areas as the main Administrator account and I still can access them fine right now. What is stopping all other admins/mods from being able to view these 3 sections?
I have tried the "disable all plugins" option found in the general settings to confirm that a plugin is not responsible. The error still happens when ALL plugins are off.
When they try to go to modcp.php, they get this error:
Quote:SQL Error:
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 ')' at line 5
Query:
SELECT COUNT(aid) AS unapprovedattachments FROM mybb_attachments a LEFT JOIN mybb_posts p ON (p.pid=a.pid) LEFT JOIN mybb_threads t ON (t.tid=p.tid) WHERE a.visible='0' AND t.fid NOT IN ()
If they try going to modcp.php?action=modqueue they get this error:
Quote:SQL Error:
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 ')' at line 1
Query:
SELECT COUNT(tid) AS unapprovedthreads FROM mybb_threads WHERE visible=0 AND fid NOT IN ()
If they try to go to modcp.php?action=modlogs they get this error:
Quote:MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
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 ')' at line 5
Query:
SELECT COUNT(l.dateline) AS count FROM mybb_moderatorlog l LEFT JOIN mybb_users u ON (u.uid=l.uid) LEFT JOIN mybb_threads t ON (t.tid=l.tid) WHERE 1=1 AND t.fid NOT IN ()
...but again, the strangest part about this is that I have always been able to access ALL these areas as the main Administrator account and I still can access them fine right now. What is stopping all other admins/mods from being able to view these 3 sections?