Closed (fixed)
Project:
Drupal core
Version:
6.0
Component:
update system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2008 at 00:05 UTC
Updated:
1 Jan 2009 at 20:20 UTC
when I navigate for the first time to update.php my Drupal 5.7, in update.php?op=info give one 'user warning'.
* user warning: 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 fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM drupal_menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in C:\Program Files\VertrigoServ\www\includes\menu.inc on line 316.
* user warning: 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 fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM drupal_menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in C:\Program Files\VertrigoServ\www\includes\menu.inc on line 316.
* user warning: 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 fit DESC LIMIT 0, 1' at line 1 query: SELECT * FROM drupal_menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in C:\Program Files\VertrigoServ\www\includes\menu.inc on line 316.
The error is in this:
SELECT * FROM {menu_router} WHERE path IN ('.implode (',', $placeholders).') ORDER BY fit DESC'
implode (',', $placeholders) returns "".
Why update.php call menu.inc?
Info: without any contrib modules/themes, I don't try to upgrade yet.
Comments
Comment #1
int commentedchange the title.
Info: Windows Vista UAC Disable/Vertrigo 2.20 (PHP 5.2.5/MySQL 5.0.51)
Comment #2
dwwI know it's confusing, but "update.module" is for the new part of 6.x core that checks for available updates to your modules and themes. You're talking about update.php, which is the "update system" component...
Comment #3
stevenpatzre-open if still an issue