Closed (cannot reproduce)
Project:
Provision
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2011 at 00:17 UTC
Updated:
5 Aug 2013 at 16:57 UTC
Jump to comment: Most recent
Comments
Comment #1
themusician commentedI 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.
Comment #2
jjesus commentedSame 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.
Comment #3
steven jones commentedWhere do you see this error? In the logs of a particular task? Running the backend manually?
Comment #4
themusician commentedHi Steve,
The patch here, https://drupal.org/node/1358768 which you have since fixed, properly mitigated these errors.
Comment #5
steven jones commented@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.
Comment #6
blueprint commentedDammit. 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.
Comment #7
blueprint commentedComment #8
blueprint commentedOk, 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.
Comment #9
Raytracer commentedHi.
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
Comment #10
Jurjen de Vries commentedI 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
Comment #11
anarcat commentedWell, 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
Comment #12
samtuke commentedFresh drush install from pear. Fresh drupal 7 install via official drush instructions. I got a similar bug.
Comment #13
ergonlogic@samtuke: 'site-install' is a native Drush command, and so not related to Aegir.
Comment #14
reptilex commentedIf 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
Comment #15
n20 commentedStumbled over this googling. My problem was the missing port in the DB url:
mysql://root:root@localhost:3306/db_name