I've just installed Storm and am playing with it a little bit. Came accross this error at /node/add/stormknowledgebase:

warning: Invalid argument supplied for foreach() in form.inc on line 1420.

The topic dropdown menu below the body field has no entries, reckon this is related :)



Magnity’s picture

swathireddy6’s picture

Component: Code » Storm.module

Hello...I got the same issue when I try to put my site into maintenance mode..
Warning: Invalid argument supplied for foreach() in form_execute_handlers() (line 1420 of C:\wamp\www\eduinfo\includes\form.inc).

I got this when I try to execute one of my simple form also.
function annotate_admin_settings()
// Get an array of node types with internal names as keys and
// "friendly names" as values. E.g.,
// array('page' => ’Basic Page, 'article' => 'Articles')
$types = node_type_get_types();
foreach($types as $node_type)
$options[$node_type->type] = $node_type->name;
$form['annotate_node_types'] = array(
'#type' => 'checkboxes',
'#title' => t('Users may annotate these content types'),
'#options' => $options,
'#default_value' => variable_get('annotate_node_types', array('page')),
'#description' => t('A text field will be available on these content types to
make user-specific notes.'),
$form['#submit']= 'annotate_admin_settings_submit';
//return $form;
return system_settings_form($form);

Please help me on this.