Sunday, August 8, 2010

Drupal error : Function ereg() is deprecated

Its is very simple to solve
open file includes/file.inc in drupal directory
Goto line no in which this error is show


where you can see something like this
elseif ($depth >= $min_depth && ereg($mask, $file))
Now add @ sign before ereg($mask, $file)
copy below line past this line
elseif ($depth >= $min_depth && @ereg($mask, $file))

Its works

No comments:

Post a Comment