Deprecated: Function ereg() is deprecated when install Drupal

At previous post about install drupal in localhost using wamp I got this message :

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

That message appear because I use latest wamp software that utilize php 5.3.0 where ereg() function is deprecated.

Quick solution for this case are :

1. Downgrade wamp to previous version

or

2. Edit php source file of drupal.

I prefer to choose second solution since I love to learn new thing :-)

I have tried a few php function like  preg_replace() and mb_ereg()

After test each function I think mb_ereg() is good solution.

Back to the problem I open file :

file.inc

C:\wamp\www\drupal\includes\file.inc


scroll to line 902.

drupal ereg Deprecated: Function ereg() is deprecated when install Drupal

change ereg in line to mb_ereg to make the line transform into :

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

Save the file and retry open http://batikweb.com

This time I got this :

install drupal Deprecated: Function ereg() is deprecated when install Drupal

Nice, I can continue to installation steps :-)

Stay health!

Related Reading:

Using DrupalUsing Drupal

With the recipes in this book, you can take full advantage of the vast collection of community-contributed modules that make the Drupal web framewo... Read More >

Drupal For DummiesDrupal For Dummies

Learn to set up, manage, and administer a Drupal Web site

Drupal offers unparalleled flexibility for content-managed Web sites, but most ... Read More >

Pro Drupal Development, Second EditionPro Drupal Development, Second Edition

Widely praised for its in–depth coverage of Drupal internals, bestselling Pro Drupal Development has been completely updated for Drupal 6 in thi... Read More >

Front End Drupal: Designing, Theming, ScriptingFront End Drupal: Designing, Theming, Scripting

“For Drupal to succeed, we need books like this.”

–Dries Buytaert, Drupal founder and project... Read More >

Cracking Drupal: A Drop in the BucketCracking Drupal: A Drop in the BucketThe first book to reveal the vulnerabilities and security issues that exist in the sites that have been built with Drupal?and how to prevent them from... Read More >

Thanks for reading, if you think this post help you please consider to buy me a beer

Search Terms :

  • Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file inc on line 911
  • Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6 16\includes\file inc on line 911
  • Deprecated: Function ereg() is deprecated in C:\wamp\www\includes\file inc on line 911
  • deprecated: function ereg() is deprecated in c:\wamp\www\drupal\includes\file inc on line 902
  • function ereg() is deprecated
  • Deprecated: Function ereg() is deprecated in
  • Deprecated: Function ereg() is deprecated
  • Deprecated: Function ereg() is deprecated in on line 911
  • Deprecated: Function ereg() is deprecated in file inc on line 911
  • Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal6\includes\file inc on line 911
  • drupal Deprecated: Function ereg() is deprecated
  • Function ereg() is deprecated in C:\wamp\www\drupal\includes\file inc on line 911
  • deprecated: function ereg() is deprecated in on line 902
  • Function ereg() is deprecated in C:\wamp\www\includes\file inc on line 911
  • function ereg() is deprecated drupal
  • deprecated function ereg is deprecated in includes file inc on line 902
  • deprecated: function ereg() is deprecated in file inc on line 902
  • ereg deprecated
  • Function ereg() is deprecated in
  • deprecated function ereg is deprecated in includes file inc on line 911
    • Share/Bookmark
    Step By Step

    If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

    Comments

    34 Responses to “Deprecated: Function ereg() is deprecated when install Drupal”

    Leave Comment

    (required)

    (required)