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

5 points

i get this error repeated line after line (say 10 times) above the select language page.

Created by Anonymous 21 weeks 4 days ago
  Tags:

Answer(s):

-5 points

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

Created by Anonymous
-3 points

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!

Created by Anonymous
8 points

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)) {

Created by f34ill068

Post your Answer

  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Links to specified hosts will have a rel="nofollow" added to them.

More information about formatting options