Closed (outdated)
Project:
TinyMCE
Version:
6.x-1.1-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
17 Jul 2008 at 13:16 UTC
Updated:
5 Jan 2023 at 23:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PixelClever commentedI am getting this same error. It is a bug, but I don't know if it really hurts anything at this point.
Comment #2
jimmb commentedI just installed TinyMCE (along with the Moxie vsn. 3.1.1), and upon creating a new profile got:
"warning: Invalid argument supplied for foreach() in /home/jimmnet/public_html/includes/form.inc on line 1189."
It seems to work OK, although there isn't any "Disable rich-text editor" link under the body field.
Comment #3
Colorful Tones commentedI just installed TinyMCE on a fresh Drupal install and received the same message: "warning: Invalid argument supplied for foreach() in /drupal6_4/includes/form.inc on line 1189." I was able to successfully create a profile though.
Comment #4
TimG1 commentedI am getting the same error too. I am able to create my first profile fine. Then when I go to edit some content TinyMCE does not appear. I just see plain text as my editor.
Furthermore, all my tabs that typically have a link and a triangle to expand/collapse more admin options are gone. For example "Menu Settings", "Authoring Information", and "Publishing Information" on a basic Page node. The label for each area is still in view, but it's not a link.
When I try to create a second profile, this is all I see....
"Basic setup", "Visibility", etc are just text and not clickable. When I view source, the expanded content is still there. But, it's just hidden from view. For example, when I view source, here is what I see for Publishing Options tab when editing a page node.
Attached is a screenshot of the Javascript errors happening on the page.
I tried disabling the TinyMCE module and the tabs are clickable again. I've tried this in Firefox 3 and Safari 3. I'm using TinyMCE 6.x-1.1-dev on Drupal 6. This is TinyMCE Version: 3.2.0.1 from http://tinymce.moxiecode.com/download.php
Here is a list of other modules I have installed.
Administration Menu
CCK
Blog
Blog API
Comment
Database Logging
Help
Menu
Path
Taxonomy
Update Status
GeShi Filter & node
Advanced Help
Feedburner
Meta tags
Nodeaccess
TinyMCE
Webform
Views
-Tim
Comment #5
discursives commentedsame error here. went to the trouble of going to Sourceforge and getting 3.0.5 of the engine, no luck.
Comment #6
hollybeary commentedI can't get it working either anymore and I've installed this module a hundred times on other sites in the past : ( Running drupal6.4 with latest version of everything.
Comment #7
Danic commentedSame error here. jimmb, are you still working at the problem?
Comment #8
jimmb commentedI'm sorry for the confusion. I assigned it to myself misunderstanding what that meant - and after the post couldn't change it. So no, I'm not a programmer and can't fix it.
All I can say is that integrating TinyMCE and Drupal 6 is such a hassle currently that I've switched to FCK editor. Not as nice, but at least it works (for the most part).
Jim
Comment #9
depace commentedIn 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(),
Comment #10
owen barton commentedHere is a patch - very straightforward so I am going straight to RTBC
Comment #11
murphytwin commentedHello,
How do you use the patch? I'm a bit new to drupal
Comment #12
owen barton commentedPlease see http://drupal.org/patch/apply
You can also manually remove the lines with '-' and add the ones with '+'.
Comment #13
cgjohnson commentedDoes replacing with
'#default_value' => isset($edit->rids) ? array_keys((array) $edit->rids) : array(),
work, and is it equally effective as the patch? I'm not a developer so this seems much easier, as long as it works. Thanks.
Comment #14
cloxzime commentedI have replaced the code below in tinymce.admin.inc. The good news, the error is not appear anymore BUT the editor still NOT appear in Content > Page/Story textbox.
'#default_value' => isset($edit->rids) ? array_keys((array) $edit->rids) : array(),
The next thing that blocked my abillity is, I am using Shared Hosting with cPanel. So that I have no privilege to use such command to install the patches as I am NOT able to access root server.
Could you please show me the right way.
Your help are greatly appreciated.
Thanks & regards,
cloxzime
Comment #15
lawlessbg commentedThe patch worked to me. In the /sites/all/modules/tinymce/ directory t typed :patch -p0 < 283879.patch
Comment #16
owen barton commentedHey Folks,
If you want to use TinyMCE on Drupal 6, I strongly suggest using http://drupal.org/project/wysiwyg instead of this module - it is under active development, and supports TinyMCE 2 and 3 (and more). I switched very shortly after I wrote this patch and am very happy with it :)
This project is either dead, or just very very dormant (and either way, WYSIWYG module is the way of the future...)
Comment #17
cloxzime commentedHi!
I'm using shared hosting so I am unable to access the area.
I already try to patch directly from my host by kick in http://www.mywebsite.com/drupal/sites/all/modules/tinymce/patch -p0 < 283879.patch but still cannot.
Can you show me how in details.
Thanks & regards,
cloXZime
Comment #18
futurist commented@cloxzime: There are handbook pages as suggested in #12 that explain how to patch locally (under Windows or OSX) before uploading.
Comment #19
nicoloye commented