TinyMCE creating profile error: Invalid argument supplied for foreach() /public_html/includes/form.inc on line 1194.

comerer - October 22, 2008 - 10:55

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

no one knows the answer??

comerer - October 28, 2008 - 22:36

no one knows the answer??

I got the same error

raskolt - November 3, 2008 - 09:01

Hello

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

Found a solution

raskolt - November 3, 2008 - 09:12

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.

Worked for me too. Thank you

crispy - January 2, 2009 - 23:08

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

Thank

adigi - April 11, 2009 - 22:24

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

Thanks,
A

Raskolt solution solve my problem

Nelchael - April 15, 2009 - 20:34

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.

 
 

Drupal is a registered trademark of Dries Buytaert.