Closed (fixed)
Project:
Radioactivity
Version:
6.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 08:38 UTC
Updated:
19 Dec 2009 at 11:30 UTC
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
Comment #1
Sera commentedJup. 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.
Comment #2
skiminki commentedCommitted: http://drupal.org/cvs?commit=298294
Thanks!
Comment #3
skiminki commented