Message:

PDOException: SQLSTATE[42000]: Syntax error or access violation: 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: SELECT ml.p1 AS p1, ml.p2 AS p2, ml.p3 AS p3, ml.p4 AS p4, ml.p5 AS p5, ml.p6 AS p6, ml.p7 AS p7, ml.p8 AS p8, ml.p9 AS p9 FROM {menu_links} ml WHERE (router_path IN ()) ; Array ( ) in admin_menu_tree_dynamic() (line 79 of /sites/all/modules/contrib/admin_menu/admin_menu.inc).

CommentFileSizeAuthor
#2 admin_menu-1215318.patch752 byteslevelos
#1 admin_menu-1215318.patch758 byteslevelos

Comments

levelos’s picture

Status: Active » Needs review
StatusFileSize
new758 bytes

Attaching patch file.

levelos’s picture

StatusFileSize
new752 bytes

Never mind that last patch, try this one ;)

Status: Needs review » Needs work

The last submitted patch, admin_menu-1215318.patch, failed testing.

strykaizer’s picture

Same error here, when I activate the admin menu for a custom role, and log in with that role.

D7.2, 7.x-3.x-dev

PDOException: SQLSTATE[42000]: Syntax error or access violation: 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: SELECT ml.p1 AS p1, ml.p2 AS p2, ml.p3 AS p3, ml.p4 AS p4, ml.p5 AS p5, ml.p6 AS p6, ml.p7 AS p7, ml.p8 AS p8, ml.p9 AS p9 FROM {menu_links} ml WHERE (router_path IN ()) ; Array ( ) in admin_menu_tree_dynamic() (line 75 of sites/all/modules/contrib/admin_menu/admin_menu.inc).

nardberjean’s picture

Same error message observed in same or different conditions. Trying to use admin menu for users with low administrative rights. Supressing the right to use admin_menu for the user make the bug disappear.

The website encountered an unexpected error. Please try again later. 

PDOException: SQLSTATE[42000]: Syntax error or access violation: 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: SELECT ml.p1 AS p1, ml.p2 AS p2, ml.p3 AS p3, ml.p4 AS p4, ml.p5 AS p5, ml.p6 AS p6, ml.p7 AS p7, ml.p8 AS p8, ml.p9 AS p9 FROM {menu_links} ml WHERE (router_path IN ()) ; Array ( ) in admin_menu_tree_dynamic() (line 76 of /var/alternc/html/s/spc/lib/php/cms/drupal/7.x/drupal-7.4/sites/all/modules/admin_menu/admin_menu.inc).
sun’s picture

Sorry for the noise; now for real.

sun’s picture

Status: Needs work » Fixed

Sorry, wasn't aware there's an issue for this. Fixed in http://drupalcode.org/project/admin_menu.git/commit/f6d25420fc66f7f57cc8...

Automatically closed -- issue fixed for 2 weeks with no activity.