Hi, I have this problem: Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 895.

I tried this below, but it didn't work. Any suggestions warmly received.

if ($errno & (E_ALL ^ E_NOTICE)) {
Replace this line with:

if ($errno & (E_ALL & ~E_NOTICE & ~E_DEPRECATED)) {

Comments

Jeannie-2’s picture

and fixed the problem by going to the wampserver icon, clicking on "PHP >> Version >> get more" and then downloaded and istalled version 5.2.9 Then I went back to the same place and changed the active version to the 5.2.9, refreshed the page and everything looked correct.

Enzman’s picture

Documentation update:

****************************************************
Drupal 6 Caution
Drupal 6 and PHP 5.3 will not work. If you must run an older version of PHP, please download an appropriate older version of Wampserver. You can find older versions of WAMP5 and WAMPSERVER2 on this page http://sourceforge.net/projects/wampserver/files/ . Just click on WAMP5 or WAMPSERVER2 for the complete file listings.

For example, Wampserver2.0h is running PHP 5.2.9-2 on a Windows Vista machine and Drupal 6 works fine.
****************************************************
Source = http://drupal.org/node/263

Alan Oliveira’s picture

I think there are no other way but shut back to olders php servers

: Function ereg() is deprecated in C:\xampp\htdocs\.....\includes\file.inc on line 895.