h1

Deprecated: Function ereg() Error when installing Drupal 6.16 with PHP 4.3

2010/05/08

Try to install Drupal 6.16 but install page stuck with ‘Deprecated: Function ereg() is deprecated in \includes\file.inc on line 911’.

Found out that it is caused by version of PHP is 4.3, a quick fix for that is to update file.inc:
at line 911, add @ sign before ereg($mask, $file)
i.e.
from

elseif ($depth >= $min_depth && ereg($mask, $file))

to

elseif ($depth >= $min_depth && @ereg($mask, $file))
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: