After upgrading PHP to 5.3 and Drupal to 6.14 I get the following error messages on editing Nodes with Radioactivty enabled:

warning: Parameter 1 to radioactivity_up_down_voting_votingapi_insert() expected to be a reference, value given in /myServer/myDirectory/includes/module.inc on line 471.

I assume that some file need to be changed and the & in the function radioactivity_up_down_voting_votingapi_insert to be removed.

Comments

Sera’s picture

Jup. I tested it and it helped:
remove the & in line 28 in /radioactivity/plugins/radioactivity_up_down.module:
OLD: function radioactivity_up_down_voting_votingapi_insert(&$votes) {
NEW: function radioactivity_up_down_voting_votingapi_insert($votes) {

For the new error message:
warning: Parameter 1 to radioactivity_votingapi_votingapi_insert() expected to be a reference, value given in /myServer/myDirectory/includes/module.inc on line 471.

do the following:
remove the & in line 27 in /radioactivity/plugins/radioactivity_votingapi.module
OLD: function radioactivity_votingapi_votingapi_insert(&$votes) {
NEW: function radioactivity_votingapi_votingapi_insert($votes) {

This should eliminate the second warning. It seems to work now, but I will do further testing.

skiminki’s picture

skiminki’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.