Deprecated: Function ereg() is deprecated in file.inc

While installing drupal 6.16, you have a deprecated ereg() method. In fact, in PHP 5.3, this method has been renamed into mb_ereg(). To fix this find :

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

and replace it like this :

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

That’s it ! You can now access the install.php.

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