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

crocha913 - August 19, 2009 - 01:30

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!

=-=

VeryMisunderstood - August 19, 2009 - 01:35

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....

crocha913 - August 19, 2009 - 01:47

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

=-=

VeryMisunderstood - August 19, 2009 - 01:49

it is best to ask in their community.

maybe try one of the versions

lubrifix - August 21, 2009 - 11:59

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

lubrifix - August 21, 2009 - 12:22

version 1.0.1 uses php 5.2.9 and solved the issue for me

edit your php.ini to disable

ksandler - November 14, 2009 - 18:46

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

 
 

Drupal is a registered trademark of Dries Buytaert.