Problem to add post :

Warning: Missing argument 8 for RadioactivityIncident::__construct(), called in /profiles/commons/modules/commons/commons_radioactivity/commons_radioactivity.module on line 111 and defined in RadioactivityIncident->__construct() (line 19 of /profiles/commons/modules/contrib/radioactivity/includes/RadioactivityIncident.inc).
•Notice: Undefined variable: floodProtected in RadioactivityIncident->__construct() (line 28 of /profiles/commons/modules/contrib/radioactivity/includes/RadioactivityIncident.inc).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stiml’s picture

Status: Active » Needs review
FileSize
856 bytes

Fix

gbaudoin’s picture

Assigned: stiml » Unassigned
Status: Needs review » Reviewed & tested by the community

With radioactivity 2.10

Devin Carlson’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch!

Tested and committed to Commons 7.x-3.x.

  • Devin Carlson committed 9d3287f on 7.x-3.x authored by stiml
    Issue #2499515 by stiml: Fixed PHP notices  with Radioactivity 7.x-2.10.
    

Status: Fixed » Closed (fixed)

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

eleuthere’s picture

Hi,
I use commons-7.x-3.26 with Radioactivity 7.x-2.10 I had the following error while publishing a post in a group :
"Warning: Missing argument 8 for RadioactivityIncident::__construct(), called in xxx/profiles/commons/modules/commons/commons_radioactivity/commons_radioactivity.module on line 110 and defined in RadioactivityIncident->__construct() (line 19 of xxx/profiles/commons/modules/contrib/radioactivity/includes/RadioactivityIncident.inc).
Notice: Undefined variable: floodProtected in RadioactivityIncident->__construct() (line 28 of xxx/profiles/commons/modules/contrib/radioactivity/includes/RadioactivityIncident.inc).
- See more at: yyy?qt-commons_bw=commons_all#sthash.N9gkftrT.dpuf"
I applied the patch :
# cd patch directory
# wget https://www.drupal.org/files/issues/'compatibility radioactivity 7.x-2.10-2499515.patch'
# cd (site root dir)/profiles/commons
# patch -p1 < (site directory path)'compatibility radioactivity 7.x-2.10-2499515.patch'
patching file modules/commons/commons_radioactivity/commons_radioactivity.module
patching file plugins/geocoder_handler/exif.inc

The error message disappears.
Nevertheless, radioactivity calculation seems out of order. The original Commons "Most active groups" view doesn't show new groups nor newly contributed ones.