Here is the debug output:

Octopus [Sun Nov  6 15:03:15 EST 2011] ==> INIT B: Deploying hostmaster application init, please wait...
Bootstrap to phase 0. [0.04 sec, 2.29 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 2.52 MB] [bootstrap]
Use of undefined constant __DIR__ - assumed '__DIR__' provision.inc:71 [0.17 sec, 6.08 MB]                                             [notice]
Use of undefined constant __DIR__ - assumed '__DIR__' provision.inc:27 [0.17 sec, 6.08 MB]                                             [notice]
require_once(__DIR__/Symfony/Component/ClassLoader/UniversalClassLoader.php): failed to open stream: No such file or directory        [warning]
provision.inc:27 [0.17 sec, 6.08 MB]
PHP Fatal error:  require_once(): Failed opening required '__DIR__/Symfony/Component/ClassLoader/UniversalClassLoader.php' (include_path='.:/usr/local/lib/php') in /data/disk/o1/.drush/provision/provision.inc on line 27

Fatal error: require_once(): Failed opening required '__DIR__/Symfony/Component/ClassLoader/UniversalClassLoader.php' (include_path='.:/usr/local/lib/php') in /data/disk/o1/.drush/provision/provision.inc on line 27
Drush command terminated abnormally due to an unrecoverable error.                                                                      [error]
Error: require_once(): Failed opening required '__DIR__/Symfony/Component/ClassLoader/UniversalClassLoader.php'
(include_path='.:/usr/local/lib/php') in /data/disk/o1/.drush/provision/provision.inc, line 27 [0.18 sec, 6.08 MB]
AegirSetupB.sh.txt: line 393: cd: /data/disk/o1/aegir/distro/001: No such file or directory
Octopus [Sun Nov  6 15:03:19 EST 2011] ==> INIT B: Deploying hostmaster application done

Comments

omega8cc’s picture

I think we should replace __DIR__ with dirname(__FILE__) to stay compatible with PHP 5.2

omega8cc’s picture

Here is the patch: http://gitorious.org/aegir/provision/commit/8f1c1df15a5fbcd5cd74df89d633...

However, next issue appeared:

Octopus [Sun Nov  6 16:24:44 EST 2011] ==> INIT B: Deploying hostmaster application init, please wait...
Bootstrap to phase 0. [0.03 sec, 2.29 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 2.52 MB] [bootstrap]
PHP Fatal error:  Class 'Provision_Context_server' not found in /data/disk/o2/.drush/provision/provision.drush.inc on line 81

Fatal error: Class 'Provision_Context_server' not found in /data/disk/o2/.drush/provision/provision.drush.inc on line 81
Drush command terminated abnormally due to an unrecoverable error.                                                                      [error]
Error: Class 'Provision_Context_server' not found in /data/disk/o2/.drush/provision/provision.drush.inc, line 81 [0.12 sec, 7.05 MB]
AegirSetupB.sh.txt: line 393: cd: /data/disk/o2/aegir/distro/001: No such file or directory
Octopus [Sun Nov  6 16:24:48 EST 2011] ==> INIT B: Deploying hostmaster application done
Steven Jones’s picture

Status: Active » Needs review

Fix for the OP pushed, but I'm not sure how the second error occurred, because by the time that that function is defined the autoloader is setup.

We'll see what Jenkins says.

Steven Jones’s picture

Status: Needs review » Needs work
Steven Jones’s picture

Title: Manual install fails due to Use of undefined constant __DIR__ » Autoloader doesn't work in PHP 5.2
omega8cc’s picture

Status: Needs work » Reviewed & tested by the community

This commit fixes the problem: http://drupalcode.org/project/provision.git/commit/f837baa

Thanks!

Steven Jones’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

  • Commit f837baa on 6.x-2.x, dev/1318374-autoloader, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-subdir-multiserver, 6.x-2.x-backports, dev-helmo-3.x by Steven Jones:
    Issue #1333710 by Steven Jones: Fixed Autoloader doesn't work in PHP 5.2...