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())

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drewish’s picture

Status: Active » Needs review
FileSize
1.85 KB

try this out.

drewish’s picture

Status: Needs review » Fixed

committed to HEAD.

yraffah’s picture

I'm still getting the same exact error using the HEAD version

axyjo’s picture

Status: Fixed » Active
drolp’s picture

FileSize
2 KB

I 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)

drewish’s picture

Status: Active » Fixed

thanks committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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