Closed (fixed)
Project:
Wysiwyg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2008 at 19:14 UTC
Updated:
16 Nov 2008 at 16:32 UTC
When creating an editor profile, the "Buttons and plugins" fieldset is not displayed. And submitting the form, I get the following errors:
* warning: Invalid argument supplied for foreach() in wysiwyg_editor.admin.inc on line 361.
* warning: array_filter(): The first argument should be an array in wysiwyg_editor.admin.inc on line 366.
The profile is created, and editing it after that, it works. The "Buttons and plugins" fieldset is there and no error is issued on submit.
It looks like wysiwyg_editor_get_plugins() in wysiwyg_editor_profile_form() returns an empty array when creating a profile because the 'buttons' array is empty.
Comments
Comment #1
sunI guess you are trying FCKeditor?
Comment #2
markus_petrux commentedNope, TinyMCE-3.
Comment #3
sunAh, I see now what you mean. (/me should read issue titles)
Yes, the profile configuration form needs a complete overhaul.
Comment #4
scottrigbyAh, I'm getting this as well (on another test site) using the dev snapshot from today. Also tinymce3. Is there anything we can do to help troubleshoot?
Comment #5
sunUnfortunately, no. The cause is trivial: Wysiwyg API tries to load and submit/store buttons and plugins for the configured editor in a profile; however, at profile creation time, no editor is configured for the profile. Hence, no buttons to select, and no buttons to store in the DB for this profile.
The notice/error message does not do any harm. After creating a new profile, just edit it again to configure the editor buttons.
Comment #6
sunThe cause of this issue was fixed by #327100: Associate editors/profiles with input formats.