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

rickvug’s picture

To 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:

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.
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: array_merge() [function.array-merge]: Argument #2 is not an array in /path/to/drupal/includes/theme.inc on line 927.
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /path/to/drupal/includes/theme.inc on line 930.
warning: array_map() [function.array-map]: Argument #2 should be an array in /path/to/drupal/modules/system/system.module on line 1015.
warning: array_keys() [function.array-keys]: The first argument should be an array in /path/to/drupal/includes/theme.inc on line 1771.
warning: Invalid argument supplied for foreach() in /path/to/drupal/includes/theme.inc on line 1771.
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.
yhahn’s picture

Status: Active » Fixed

This should be fixed with this commit http://drupal.org/cvs?commit=302612

Status: Fixed » Closed (fixed)

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