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

int’s picture

Title: update error » update.php?op=info show one menu.inc Error

change the title.

Info: Windows Vista UAC Disable/Vertrigo 2.20 (PHP 5.2.5/MySQL 5.0.51)

dww’s picture

Component: update.module » update system

I 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...

StevenPatz’s picture

Status: Active » Fixed

re-open if still an issue

Status: Fixed » Closed (fixed)

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