I get this error on Debian Squeeze with php 5.3

line 916 is
$parts += array('pass' => '', 'port' => '');

Comments

themusician’s picture

I too receive this error when trying to verify or migrate a site.

I am currently running Aegir on RHEL 6 with PHP 5.3 and Drush 4.5.

Error: Unsupported operand types in /var/aegir/drush/includes/environment.inc, line 916.

Not sure where to start with this one.

jjesus’s picture

Same for me on Aegir 6.x-1.5. Debian 6, Drush 4.5. Platform is Acquia 1.2.30 (Drupal 6.20). Site seems to operating OK. Some other sites on same Aegir instance using Platform Drupal 7 do not have this problem.

steven jones’s picture

Where do you see this error? In the logs of a particular task? Running the backend manually?

themusician’s picture

Hi Steve,

The patch here, https://drupal.org/node/1358768 which you have since fixed, properly mitigated these errors.

steven jones’s picture

Status: Active » Closed (duplicate)

@theMusician okay, well I'm going to mark this as a duplicate of that issue then, after we release Aegir 1.7 (should be this week) if you guys can upgrade, and re-test, if you get the same error then you can re-open.

Sorry about this bug.

blueprint’s picture

Dammit. I can't upgrade BECAUSE of this error. Well, manually pushing everything in place works, but .drush/alias files got messed. up.

I don't understand, however, why this in the provision cue if it's an error in drush? The patch, above did nothing for me.

I suspect that the migration was broken off at another point generating faulty alias files which are causing the operands to be faulty.

blueprint’s picture

Status: Closed (duplicate) » Needs review
blueprint’s picture

Ok, looks like I have a case where the database migration was not completed correctly (hostmaster) and consequently the migration of alias files and settings completed without the hostmaster even existing in the db. Odd, but, I have serveral other aegir instances (cleaner/newer) than this one to test, so I'll get back after i've test those.

In any case drush operations on the hostmaster (in the context of the hostmaster after failed migration) don't work with 916 (and after patch on next page 920) error messages. In other sites (platforms)all is well.

Raytracer’s picture

Hi.

I am having the same problem but when trying to install aegir through debian package.
Debian 6.0
PHP 5.3
Drush 4.5

Anyone knows a fix or something to succesfully install aegir?

Thank you.

*EDIT*
Aegir 1.7

I Also checked this one and changed the root password to a simpler one with no special characters. Didn't work
http://drupal.org/node/1202568

Jurjen de Vries’s picture

I also had this issue with Drupal 6 migration.
At http://drupal.org/node/1757432 I was pointed to drushrc.php by Helmo.
For me this helped to manually solve the problem. But I think it is still a bug at migrating Drupal 6 sites.

Please try the following instructions
1. Open a shell session at your server as root, because drushrc.php is write protected (read only for Aegir user)
2. cd /var/aegir/platforms//sites/ (change
and into yours)
3. Open a editor, e.g. nano drushrc.php
4. Add the following lines between <?php and $options['packages'] = array (

$options['db_type'] = 'mysql';
$options['db_host'] = 'localhost';
$options['db_port'] = '3306';
$options['db_passwd'] = 'YOUR-DATABASE-PASSWORD';
$options['db_name'] = 'YOUR-DATABASE-NAME';
$options['db_user'] = 'YOUR-DATABASE-USERNAME';

5. Change the YOUR-DATABASE-PASSWORD , YOUR-DATABASE-NAME and YOUR-DATABASE-USERNAME to the MySQL credentials of your site. If needed also change the host and port. For most configurations this is the default.
6. Save the file
7. Verify the site again

anarcat’s picture

Category: bug » support
Status: Needs review » Postponed (maintainer needs more info)

Well, the issue was fixed in 1.7 and #1358768: 6.x-2.x generates multiple Undefined property errors on hostmaster install from what I can understand from the log here. Have you guys tried applying this patch to 1.6 to see if it gets you through the upgrade?

Reminder, here's the patch we were refering to: https://drupal.org/files/hostmaster-1358768-notices.patch

samtuke’s picture

Fresh drush install from pear. Fresh drupal 7 install via official drush instructions. I got a similar bug.

$ drush site-install --db-url=mysql://foo:name=bar --account-pass=bang -y
PHP Fatal error:  Unsupported operand types in /usr/share/php/drush/includes/sitealias.inc on line 1468
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                                                 [error]
Error: Unsupported operand types in /usr/share/php/drush/includes/sitealias.inc, line 1468
ergonlogic’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

@samtuke: 'site-install' is a native Drush command, and so not related to Aegir.

reptilex’s picture

If you get this:
Fatal error: Unsupported operand types in /usr/lib/php/pear/drush/includes/sitealias.inc on line 1468
It's because your db-url is not right, mine was missing the db host

n20’s picture

Stumbled over this googling. My problem was the missing port in the DB url:

mysql://root:root@localhost:3306/db_name