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.
akismet.admin.inc lines
'#default_value' => variable_get('akismet_check_nodetypes', NULL)
'#default_value' => variable_get('akismet_antispambot_rules', NULL)
render PHP warnings:
warning: Invalid argument supplied for foreach() in /includes/form.inc on line 1181
setting default values to empty arrays should fix this issue
'#default_value' => variable_get('akismet_check_nodetypes', array())
'#default_value' => variable_get('akismet_antispambot_rules', array())
Comment | File | Size | Author |
---|---|---|---|
#5 | akismet_242339_2.patch | 2 KB | drolp |
#1 | akismet_242339.patch | 1.85 KB | drewish |
Comments
Comment #1
drewish CreditAttribution: drewish commentedtry this out.
Comment #2
drewish CreditAttribution: drewish commentedcommitted to HEAD.
Comment #3
yraffah CreditAttribution: yraffah commentedI'm still getting the same exact error using the HEAD version
Comment #4
axyjo CreditAttribution: axyjo commentedComment #5
drolp CreditAttribution: drolp commentedI only see these prior to entering my api key.
That being said the original patch only touches akismet.module, akismet.admin.inc have some instances as well. See attached patch. (applies to head)
Comment #6
drewish CreditAttribution: drewish commentedthanks committed to HEAD.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.