warning: Invalid argument supplied for foreach() in /var/www/vhosts/drupal6/includes/form.inc on line 1189. Show on main admin page.

Comments

ktleow’s picture

I have the same problem too.

TinyMCE 6.x-1.1-dev

cratos’s picture

Same problem here with TinyMCE 6.x-1.1-dev.

Danic’s picture

Status: Active » Closed (duplicate)

Please add your comments here: http://drupal.org/node/283879

depace’s picture

In tinymce.admin.inc file, change line no. 120 from

'#default_value' => isset($edit->rids) ? array_keys((array) $edit->rids) : NULL,

to

'#default_value' => isset($edit->rids) ? array_keys((array) $edit->rids) : array(),

mudbone9’s picture

I'm getting the following error:

warning: Invalid argument supplied for foreach() in /home2/whisperi/public_html/modules/taxonomy/taxonomy.module on line 1189.

Any ideas?

iqbalbaskara’s picture

#4 does eliminate the error notification, but the forms (name, user roles, etc.) that are supposed to be there dont show up either..

computer_jin’s picture

i m also having this same issue any one who solved this issue....

computer_jin’s picture

Hi every one ,
I am also having this same issue before many days and today i debub how can i solve this issue actually i was having error ....
warning: Invalid argument supplied for foreach() in \includes\form.inc on line 1193.
I am having this issue and when i debug and comment the code of checkboxes in my module than this error is resolved but i have to use this checkboxes ,check my code if i m missing some minor code and tell me how can i solve this ..

$form['payment_options']['business_payment_method']= array(
'#type' => 'checkboxes',
'#title'=> t('Payment Options'),
'#default_value' => variable_get('business_payment_method',$selected_payment),
'#options' => $payment_options,
);
I am using this tell me if you understand how can i solve this issue ...

Thanks in Advance

Azhar
4 Ace Technologies(www.4acetech.com)
karachi,Pakistan