Community & Support

Deprecated: Function ereg() is deprecated in /Applications/XAMPP/xamppfiles/htdocs/drupal/includes/file.inc on line 895

I am installing Drupal on my mac for the first time and I keep getting this error. I am new to macs and fairly new to Drupal. I am running XAMPP and that seems to be working very well. Please help!

Comments

=-=

Drupal 6.x is not PHP 5.3 compatible at the moment. Roll back to PHP 5.2.10

thanks! but i'm having trouble finding xampp....

i'm having trouble finding xampp that has PHP 5.2.10. can anyone provide a link for download? thanks

=-=

it is best to ask in their community.

maybe try one of the versions

maybe try one of the versions at this link : http://sourceforge.net/projects/xampp/files/XAMPP%20Mac%20OS%20X/

version 1.0.1 uses php 5.2.9

version 1.0.1 uses php 5.2.9 and solved the issue for me

edit your php.ini to disable

edit your php.ini to disable error reporting for deprecated commands

1. open [xampp dir]/etc/php.ini (for me on linux this was /opt/lampp/etc/php.ini)
2. change this line:

error_reporting = E_ALL | E_STRICT

to this:

error_reporting = E_ALL & ~E_DEPRECATED

3. restart xampp

the installation should now work

notes:
* when modifying php.ini, make sure you have write permissions
* the line in php.ini you want is around line 516. make sure you're editing a line that doesnt begin with a semicolon (those lines are comments and dont affect anything)
* this will squelch all notices of deprecated methods

kpeace

cua

nobody click here