Site creation stuck on: Function ereg() is deprecated - PHP 5.3

Events happening in the community are now at Drupal community events on www.drupal.org.
nofuseto's picture

Hi folks I think I need some help here.
Aegir 0.4alpha14 and drupal 6.19 running on ubuntu server 10.04 with PHP 5.3.
I had some sites there for more than a year and migrated them step by step way back from aegir 0.3.
Today I tried to create a new site and I got tons of:

Function ereg() is deprecated file.inc:938

Worst thing is aegir is stuck: is it keeps trying to install the new site (the ajax wheel in the tasks block keeps turning).
I know it's a PHP 5.3 problem, but I really don't know where to look at now to stop the site installation...

If I view the task this is exactly what I get:

Task starts processing
Running: /var/aegir/drush/drush.php --uri='site.domain.com' provision-save '@site.domain.com' --backend
Drush bootstrap phase : _drush_bootstrap_drush()
Found command: provision-save (commandfile=provision)
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Load alias @self
Load alias @platform_drupal6
Load alias @server_master
Loading mysql driver for the db service
Loading apache driver for the http service
Load alias @site.domain.com
Template loaded: /var/aegir/.drush/provision/provision_drushrc_alias.tpl.php
Generated config Drush configuration file
Changed permissions of /var/aegir/.drush/site.domain.com.alias.drushrc.php to 400
Command dispatch complete
Peak memory usage was 4.41 MB
Running: /var/aegir/drush/drush.php @site.domain.com provision-install --backend
Drush bootstrap phase : _drush_bootstrap_drush()
Load alias @site.domain.com
Drush bootstrap phase : _drush_bootstrap_drupal_root()
Loading drushrc "/var/aegir/platforms/drupal-6.x/drushrc.php" into "drupal" scope.
Initialized Drupal 6.19 root directory at /var/aegir/platforms/drupal-6.x
Found command: provision-install (commandfile=provision)
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Load alias @platform_drupal6
Load alias @server_master
Loading mysql driver for the db service
Loading apache driver for the http service
Including /var/aegir/.drush/provision/db/install.provision.inc
Including /var/aegir/.drush/provision/example/install.provision.inc
Including /var/aegir/.drush/provision/http/install.provision.inc
Including /var/aegir/.drush/provision/platform/install.provision.inc
Function ereg_replace() is deprecated db.drush.inc:67
Granting privileges to sitedomain@sitedomain.com on sitedomain
Created sitedomain database
Created sites/site.domain.com
Changed permissions of sites/site.domain.com to 755
Created sites/site.domain.com/themes
Changed permissions of sites/site.domain.com/themes to 2775
Created sites/site.domain.com/modules
Changed permissions of sites/site.domain.com/modules to 2775
Created sites/site.domain.com/libraries
Changed permissions of sites/site.domain.com/libraries to 2775
Created sites/site.domain.com/files
Changed permissions of sites/site.domain.com/files to 2770
Created sites/site.domain.com/files/tmp
Changed permissions of sites/site.domain.com/files/tmp to 2770
Created sites/site.domain.com/files/images
Changed permissions of sites/site.domain.com/files/images to 2770
Created sites/site.domain.com/files/pictures
Changed permissions of sites/site.domain.com/files/pictures to 2770
Created sites/site.domain.com/private
Changed permissions of sites/site.domain.com/private to 2770
Created sites/site.domain.com/private/files
Changed permissions of sites/site.domain.com/private/files to 2770
Created sites/site.domain.com/private/temp
Changed permissions of sites/site.domain.com/private/temp to 2770
Changed ownership of sites/site.domain.com/files to aegir
Changed ownership of sites/site.domain.com/files/tmp to aegir
Changed ownership of sites/site.domain.com/files/images to aegir
Changed ownership of sites/site.domain.com/files/pictures to aegir
Changed ownership of sites/site.domain.com/private to aegir
Changed ownership of sites/site.domain.com/private/files to aegir
Changed ownership of sites/site.domain.com/private/temp to aegir
Changed group ownership of sites/site.domain.com/files to www-data
Changed group ownership of sites/site.domain.com/files/tmp to www-data
Changed group ownership of sites/site.domain.com/files/images to www-data
Changed group ownership of sites/site.domain.com/files/pictures to www-data
Changed group ownership of sites/site.domain.com/private to www-data
Changed group ownership of sites/site.domain.com/private/files to www-data
Changed group ownership of sites/site.domain.com/private/temp to www-data
Template loaded: /var/aegir/.drush/provision/platform/provision_drupal_settings.tpl.php
Generated config Drupal settings.php file
Changed permissions of /var/aegir/platforms/drupal-6.x/sites/site.domain.com/settings.php to 440
Change group ownership of /var/aegir/platforms/drupal-6.x/sites/site.domain.com/settings.php to www-data
Template loaded: /var/aegir/.drush/provision/provision_drushrc_site.tpl.php
Generated config Site Drush configuration file
Changed permissions of /var/aegir/platforms/drupal-6.x/sites/site.domain.com/drushrc.php to 400
Drush bootstrap phase : _drush_bootstrap_drupal_site()
Initialized Drupal site site.domain.com at sites/site.domain.com
Loading drushrc "/var/aegir/platforms/drupal-6.x/sites/site.domain.com/drushrc.php" into "site" scope.
Running: /var/aegir/drush/drush.php @site.domain.com provision-install-backend --backend
Drush bootstrap phase : _drush_bootstrap_drush()
Load alias @site.domain.com
Loading drushrc "/var/aegir/platforms/drupal-6.x/sites/site.domain.com/drushrc.php" into "site" scope.
Drush bootstrap phase : _drush_bootstrap_drupal_root()
Loading drushrc "/var/aegir/platforms/drupal-6.x/drushrc.php" into "drupal" scope.
Initialized Drupal 6.19 root directory at /var/aegir/platforms/drupal-6.x
Drush bootstrap phase : _drush_bootstrap_drupal_site()
Initialized Drupal site site.domain.com at sites/site.domain.com
Loading drushrc "/var/aegir/platforms/drupal-6.x/sites/site.domain.com/drushrc.php" into "site" scope.
Found command: provision-install-backend (commandfile=provision)
Initializing drush commandfile: drush_make
Initializing drush commandfile: drush_make_d_o
Initializing drush commandfile: provision
Load alias @platform_drupal6
Load alias @server_master
Loading mysql driver for the db service
Loading apache driver for the http service
Trying to get property of non-object provision.inc:57
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Function ereg() is deprecated file.inc:938
Drush command could not be completed

Comments

Pinning older php packages

timwood's picture

You can pin older, but still maintained, packages of php from Karmic or even Hardy (I've not tested this) into your 10.04 or 10.10 install. This basically enables you to use php 5.2 instead of php 5.3. I know this isn't really an answer to your question, but it's an alternate solution. The Pantheon project has documented how to do this here:

Original Instructions:
http://groups.drupal.org/node/72718

There is a bug with the pinning settings for a few of the php packages because some aren't available in karmic-updates since they never got an update during 9.10. php5-mcrypt is one example of this. I'm not yet sure how to best solve this issue, besides pinning each package which never had updates to "karmic" instead of karmic-updates.

how is this going?

irishgringo's picture

I am about to do a brand new aegir install with Ubuntu 10.04.
How did you resolve the php 5.3 issue?
was that the only issue?

i edited line 938 of file.inc

nofuseto's picture

i edited line 938 of file.inc (it's ugly messing with core, I know) and changed ereg with mb_ereg
only problem as far as I remember

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week