Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#1 | compatibility radioactivity 7.x-2.10-2499515.patch | 856 bytes | stiml |
Comments
Comment #1
stiml CreditAttribution: stiml as a volunteer commentedFix
Comment #2
gbaudoin CreditAttribution: gbaudoin at DevFactory commentedWith radioactivity 2.10
Comment #3
Devin Carlson CreditAttribution: Devin Carlson commentedThanks for the patch!
Tested and committed to Commons 7.x-3.x.
Comment #6
eleuthere CreditAttribution: eleuthere as a volunteer commentedHi,
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.