Posted by akamaus on October 19, 2011 at 3:32pm
4 followers
Jump to:
| Project: | Superfish |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
I modified the standard installation profile and included dependencies on bunch of modules .
Now if I run drush site-install -y standard, I got this:
$ drush site-install standard
Starting Drupal installation. This takes a few seconds ...
array_merge(): Argument #2 is not an array install.inc:1104 [warning]
PHP Fatal error: Unsupported operand types in /home/maus/www/drupal/includes/install.core.inc on line 721
PHP Stack trace:
PHP 1. {main}() /usr/local/drush-7.x-4.5/drush.php:0
PHP 2. drush_main() /usr/local/drush-7.x-4.5/drush.php:41
PHP 3. drush_dispatch() /usr/local/drush-7.x-4.5/drush.php:101
PHP 4. call_user_func_array() /usr/local/drush-7.x-4.5/includes/command.inc:214
PHP 5. drush_command() /usr/local/drush-7.x-4.5/includes/command.inc:0
PHP 6. _drush_invoke_args() /usr/local/drush-7.x-4.5/includes/command.inc:806
PHP 7. call_user_func_array() /usr/local/drush-7.x-4.5/includes/command.inc:134
PHP 8. drush_core_site_install() /usr/local/drush-7.x-4.5/includes/command.inc:0
PHP 9. drush_core_site_install_version() /usr/local/drush-7.x-4.5/commands/core/site_install.drush.inc:132
PHP 10. install_drupal() /usr/local/drush-7.x-4.5/commands/core/drupal/site_install.inc:59
PHP 11. install_run_tasks() /home/maus/www/drupal/includes/install.core.inc:79
PHP 12. install_run_task() /home/maus/www/drupal/includes/install.core.inc:342
PHP 13. install_verify_requirements() /home/maus/www/drupal/includes/install.core.inc:473
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Unsupported operand types in /home/maus/www/drupal/includes/install.core.inc, line 721I made some trials and found that all works ok if I exclude superfish from dependencies.
I use drush-7.x-4.5, drupal-7.8, superfish-7.x-1.8, libraries-7.x-1.0
Comments
#1
Maybe Superfish has invalid requirements? Please find root cause. Also please use tip of 4.x or 5.x Drush.
#2
Made some further investigations.
The root of the problem is indeed superfish_requirements hook. Looks like there is a bug there, a sole return statement is located in a conditional branch. So nothing is returned. Function drupal_check_profile uses this result in array_merge, which has a weird behavior on a null values.
I tried fixing superfish_requirements, and now I get the following error message:
What puzzles me, is that I have libraries module included in my profile. Probably it gets processed after superfish or something like that.
So looks like drush is innocent here. Found related issues in superfish's queue:
http://drupal.org/node/1158926
http://drupal.org/node/1158890
The problem is fixed in the repository.
#3
#4
Privet! & Hey!
For the record: Use the v1.9-beta4 :)
#5
Privet!
Why not to release it first? ;)