i have installed the drupal successfully but when i try to access my account i get these error messages

* warning: Parameter 3 to block_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 386.
* warning: Parameter 3 to comment_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 386.
* warning: Parameter 2 to node_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 386.
* warning: Parameter 3 to system_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 386.
* warning: Parameter 2 to user_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 386.
* warning: Parameter 2 to watchdog_user() expected to be a reference, value given in C:\xampp\htdocs\drupal\includes\module.inc on line 386.

please can anyone help me with this ??

Comments

earthangelconsulting’s picture

This is probably a moot point by now, since this was over two years ago, but... the reason I was getting this error was because we were running an old version of Drupal (6.10) on php 5.3.x ... which is a lot stricter about passing by reference.

To stop these errors, if you have similar versions (and php is for sure higher than 5.3.0 ) then you should look at functions _user_categories and _user_forms in modules/user/user.module and compare them to how they are coded in a higher version of Drupal 6.x (i used 6.25). If the higher version shows a fix with a comment re: certain variables needing to be passed by reference, and your current one doesn't, you need to backport that fix.

fugazi’s picture

Hello goatvirus,

I now have the problem with such errors.

Parameter 2 to agreement_user() expected to be a reference, value given in /includes/module.inc in Zeile 497
Parameter 3 to locale_user() expected to be a reference, value given in /includes/module.inc in Zeile 497
Parameter 2 to node_user() expected to be a reference, value given in /includes/module.inc in Zeile 497
Parameter 2 to poll_user() expected to be a reference, value given in /includes/module.inc in Zeile 497
Parameter 3 to system_user() expected to be a reference, value given in /includes/module.inc on line 497

they explain it very well, but I can not understand how I backport that fix. they can explain something better I can rework it.

Many Thanks