views:

10415

answers:

3

Anyone knows how to solve the error below ?

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

It is happening after installing Drupal 6.13 on wamp server 2.0i with PHP 5.3.0

+2  A: 

Looks like the problem is with PHP 5.3.0. You could try downgrading to 5.2.9 as suggested by this drupal link: http://drupal.org/node/514334

quickcel
I downgraded PHP to 5.2.9 and the error messages went away.
CraftyFella
+10  A: 

Drop your error reporting level below E_DEPRECATED.

PHP 5.3 introduced two new error reporting levels, E_DEPRECATED and E_USER_DEPRECATED and, for the first time in PHP's history, they've started to walk away from older parts of their API. THe erge_* function will still work, but this warning is intended to let you know that "hey, these function will be going away soon, probably in the next major revision).

Alan Storm
Thanks Alan you were right !
João Guilherme
A: 

You can edit you common.inc file to quietly disregard the deprecated error flags. See my post: http://funkinetics.org/klink/function-ereg-is-deprecated-error-in-drupal-6x-with-php-53/

RayRay I think Alan Storm's suggestion is better because you just change the PHP error reporting level. Either way thanks for your answer !
João Guilherme