Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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