Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By littlepeachboy on
Hi Guys
I am a newbie.
I am running Drupal using Mowes portable.
When I installed Drupal, everything seemed to work except it is giving me an error
# : Function ereg() is deprecated in C:\Program Files\Drupal\www\drupal\includes\file.inc on line 895.
I get a whole bunch of them. I have reinstalled many times with the same result.
I can do most things but I can get to my reports and run status and am unable to run cron.
please help
Comments
This function is really deprecated.
As of PHP 5.3.0, IIRC, ereg extension is deprecated (changelog). Seems like somebody updated your PHP version :)
It must be notice though, not error.
Open includes/file.inc and change
ereg
topreg_match
.Thanks for your help but it
Thanks for your help but it just gave me a new error
warning: preg_match(): Delimiter must not be alphanumeric or backslash in C:\Program Files\Drupal\www\drupal\includes\file.inc on line 895.
I'm also having this problem.
I'm also having this problem. Can anyone tell me how to update the file_scan_directory function?
I have exactly the same problem
I changed to preg_match and received the same new error..
Same error here
Thanks!
same error what to do
i am also facing same error what to do
same here
subscribing
http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.
Go to line 895 and change
Go to line 895 and change to:
elseif ($depth >= $min_depth && preg_match("/$mask/", $file)) {
See
http://drupal.org/node/514334
José San Martin
http://www.chuva-inc.com/