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.
The following error occurs when the new 2.0-beta1 version of strong arm is included as a module to install as part of an install profile:
warning: Invalid argument supplied for foreach() in /path/to/drupal/includes/menu.inc on line 209.
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 menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in /path/to/drupal/includes/menu.inc on line 315.
warning: Invalid argument supplied for foreach() in /path/to/drupal/includes/menu.inc on line 209.
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 menu_router WHERE path IN () ORDER BY fit DESC LIMIT 0, 1 in /path/to/drupal/includes/menu.inc on line 315.
cTools is also being installed in this initial list. As a result of this error, the install process does not seem to complete (garland is not shown, the "Welcome to Drupal" message is there but with many, many errors on each page load).
Comments
Comment #1
rickvug CreditAttribution: rickvug commentedTo give an update on, I changed my install procedure so that ctools was first enabled through the install profile and strongarm was a dependency of a feature module. In this scenario, the feature module install process failed. For a third test, I cleanly installed from the same profile (same codebase) and before enabling the feature, I enabled strong arm manually via the modules page. After this, I enabled the feature without error. To summarize, enabling strongarm through an install profile or feature module creates an error. If strongarm is manually enabled beforehand, the feature module that depends on strongarm installs fine.
If it helps for debugging, here is the error from the features based install:
Comment #2
yhahn CreditAttribution: yhahn commentedThis should be fixed with this commit http://drupal.org/cvs?commit=302612