i get this error repeated line after line (say 10 times) above the select language page.
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal2\includes\file.inc on line 902
- Add new Answer
- Reset vote
- 5 points
i get this error repeated line after line (say 10 times) above the select language page.
Drupal is not yet compatible with PHP v5.3
Read more here http://drupal.org/node/360605
I would install an older version of wamp which has PHP 5.2
Thank you for the information about why the error occurred. I just had the same problem. I found out that I did not need to install an older version of wamp. You can add an older version of PHP to the installation. Older versions can be downloaded and installed from here:
http://www.wampserver.com/en/addons_php.php
PHP 5.2.11 worked for me.
After installing it, click on the wampserver tray icon, go to PHP, then Version, and then click on the version you just downloaded.
The change either takes a moment to actually 'take', or you need not to have the localhost open in your browser when you make the change. But it works!
Thanks!
Solution:
step 1: Goto Folder Drupal\includes
step 2: Select File “file.inc”
step 3:
Goto 902 Line
elseif ($depth >= $min_depth && ereg($mask, $file)) {
Change the function ereg to mb_ereg
elseif ($depth >= $min_depth && mb_ereg($mask, $file)) {
Post your Answer