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
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 :
Nice, I can continue to installation steps
Stay health!
- deprecated: function ereg() is deprecated in c:\wamp\www\drupal\includes\file inc on line 902
- deprecated: function ereg() is deprecated in c:\wamp\www\includes\file inc on line 902
- deprecated: function ereg() is deprecated in on line 902
- deprecated: function ereg() is deprecated in includes\file inc on line 902
- function ereg() is deprecated in c:\wamp\www\drupal\includes\file inc on line 902
- deprecated: function ereg() is deprecated in file inc on line 902
- deprecated: function ereg() is deprecated on line 902
- ereg deprecated
- Deprecated: Function ereg() is deprecated in includes/file inc on line 902
- Deprecated: Function ereg() is deprecated in \includes\file inc on line 902
- Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\drupal\includes\file inc on line 902 Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\drupal\includes\file inc on line 902 Deprecated: Function ereg() is deprecated in C:\wamp
- drupal Deprecated: Function ereg() is deprecated
- phpmyadmin eregi deprecated
- function ereg() is deprecated drupal
- drupal deprecated: function ereg() is deprecated in c:\wamp\www\drupal\includes\file inc on line 902
- drupal installation function ereg() is deprecated
- deprecated: function ereg() is deprecated in c:\wamp\www\test\includes\file inc on line 902
- joomla deprecated: function ereg() is deprecated
- Function ereg() is deprecated joomla
- eregi deprecated change
Related posts:
- [UNKNOWN: 8192] Function ereg() is deprecated when Install Joomla Hello, in previous post I try to describe installation...
- Step by Step Install Drupal on Wamp : Add Domain After reading my post about howto install drupalĀ in...
- Step by Step Install Drupal on WampServer : Vhost and Clean URL In previous post I have talk about fix ereg()...
- Install drupal in localhost with xampp Recommended Drupal Book : Using Drupal Pro Drupal Development,...
- Step by step move drupal from localhost to drupal hosting : From Localhost to Online Sorry for late post, I have to attend a...
Related posts brought to you by Yet Another Related Posts Plugin.
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.







Thanks really helpful
ok
excelent
Thanks for this very usefull information !
Excelent!!!!
It works for drupal 6.14
Thanks a lot! It worked for 6.14
Thanks a lot. I dont have admin access. Older WAMP requires admin access. Your patch as per 2 helped to work on Drupal w/o 902
Worked for me. Thanks
Thanks you very much! its works immediately
Thanks, worked like a charm.
Excellent! Thank you very much!
THANKS!!!
Thanks alot solved my issue aswell
You’re the man!
Still works in 6.16