I just installed the latest version of xampp and Drupal 6.x. There seems to be a compatibility issue with the version of PHP in this version of xampp and Drupal 6.x. I keep getting a lot of error messages but they are not stopping me from doing anything till I tried to go into 'Account' and tried to go to the edit tab. I simply got errors such as:
# warning: Parameter 3 to block_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 450.
# warning: Parameter 2 to blog_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 450.
and no way to do the actual editing. It is my understanding that this PHP issue with be addressed with the new Drupal 7. Is there any way to downgrade the existing version of PHP in xampp to the previous version while waiting for Drupal 7 to come out? Or is there another work around that I have missed? If anyone can point me in the right direction I would appreciate it.
Thanks
Comments
Are you using PHP 5.3? See
Are you using PHP 5.3? See http://drupal.org/node/360605 for information about compatability problems between PHP 5.3 and D6.
In order to downgrade PHP in XAMPP it's probably easiest to downgrade XAMPP itself: see http://sourceforge.net/projects/xampp/files/ for older versions; 1.7.1 comes with PHP 5.2 which works with D6.
PHP issues
Thanks for the reply. Not sure what version of PHP I'm using, I'm not sure where to find that info; all I know is that it is the latest version of xampp. I have done quite a bit of configuring in Drupal at this point (adding modules, web content, etc.) and would hate to have to start over. Is there a way of reinstalling (downgrading) xampp without losing everything that I've put in? I'm pretty new to this and still feeling my way around so I apologize for all of the seemingly simple questions.
_
That would be a question for the xampp folks. That said, using wampserver switching out versions of php is incredibly simple (install the addon from the wampserver site for the extra version and select the version you want from the applet). you may wish to look into switching.
Seconded: changing PHP
Seconded: changing PHP versions (and MySQL versions, for that matter) in WAMP is really easy so you might want to switch.
Otherwise, the easiest thing might be backing up your Drupal site, uninstalling XAMPP, installing the older verison of XAMPP and then restoring your Drupal setup from your backup. Backing up and restoring a Drupal site is much easier than you'd think and it's a good skill to have: check out http://drupal.org/node/120627 and http://drupal.org/project/backup_migrate. Once you've done a few migrations they become second nature.