I've just tried creating a site using the output from drushmake.me and Aegir says it installs as a platform and site fine, but I get a plain Drupal 6 install with no extra modules and a whole load of "Function ereg() is deprecated file.inc:941"s in the log. Any advice?

Comments

mxmilkiib’s picture

Title: Many "Function ereg() is deprecated file.inc:941" and site broken » Creating a site gives many "Function ereg() is deprecated file.inc:941" errors and a broken site

Retrying with a fresh start.

Building a platform using this .make works fine (is there anything controversial in that .make?). Building a site with that platform gives the problem. There were many more "Function ereg() is deprecated file.inc:941" errors in total.

Applying this hack (eek!) resolves the problem and I can now login to reset the admin password with a freshly created site.

anarcat’s picture

This is an issue with Drupal 6 (#883038: PHP warning: Function ereg() is deprecated in includes/file.inc) or with drush that doesn't remove the DEPRECATED notices. (I think it's Drupal.)

One of three solutions:

* fix it in provision (hackish, ugly)
* fix it in drush (not too bad, would respect upstream bootstrap process)
* fix it in D6 (everybody wins)

drupalninja99’s picture

Version: » 6.x-1.0-rc7

Where in drush would we fix it?

anarcat’s picture

Version: 6.x-1.0-rc7 » 6.x-1.0

It's drush_errors_on() that doesn't respect your existing error reporting: http://api.drush.ws/api/function/drush_errors_on/4.x

That is the case even though examples/example.drush.ini tells you you can set error_reporting, drush_errors_on() actually bypasses that.

I am not sure I understand the way this works well enough, but I suspect we could hijack the DRUSH_ERROR_REPORTING context using:

drush_set_context(DRUSH_ERROR_REPORTING, E_ALL | E_NOTICE | E_STRICT)

... in provision.inc or similar, to get rid of those errors.

anarcat’s picture

Status: Active » Postponed

I have opened an issue upstream with drush: #1129332: drush doesn't respect existing error_reporting settings.

j0nathan’s picture

Subscribing.

steven jones’s picture

Status: Postponed » Fixed

Looks like this has been fixed upstream in Drush now, if you can still reproduce this error, please re-open.

Status: Fixed » Closed (fixed)

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