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.
Hi,
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 :)
Cheers
Comments
Comment #1
Magnity CreditAttribution: Magnity commentedDuplicate of #365641: warning: Invalid argument supplied for foreach() in /var/www/project/includes/form.inc on line 1415.
Comment #2
swathireddy6 CreditAttribution: swathireddy6 commentedHello...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.
Thanks