I installed a TinyMCE module and enabled it.
While creating a new profile I receiving on the top some error:

warning: Invalid argument supplied for foreach() in /home/canadaru/public_html/includes/form.inc on line 1194.

How can I fix this error?

Thank you in advance

Comments

comerer’s picture

no one knows the answer??

raskolt’s picture

Hello

I got the same error. I think it is related with the template. I am still lokking for the solution.

raskolt’s picture

Hey I found a solution. People say that it is a bug in TinyMCE.

Here is the solution. It is not mine.

"depace" wrote:

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

This solution is from the page at: http://drupal.org/node/283879

You can find the other answers if you want. There are other solutions but this one worked for me.

Good luck.

Aleet’s picture

Worked for me too. Thank you raskolt. I'm running 6.6.

adigi’s picture

This worked for me too!
I'm running Drupal 6.10 and TinyMCE 3.2.2.3.

Thanks,
A

claudio.lente’s picture

Raskolt,
thanks for help.

Im start using drupal 6.0.
Your post save a lot time. I apply the correction in code, and TinyMCE works.

Im Thankful for your help.