I lately did update FCK to 5.x-2.2-rc3 and now if there are more than one editors on a page I get the warning:

warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in /opt/drupal5/includes/common.inc on line 1684.

If I disable FCK the warning ist gone.

Line 1684 is

$output .= '<script type="text/javascript">Drupal.extend({ settings: '. drupal_to_js(call_user_func_array('array_merge_recursive', $data)) ." });</script>\n";

Maybe the JS included more than once now?

Best regards,

Karsten

Comments

wwalc’s picture

Status: Active » Fixed

Check the latest version of fckeditor.module from CVS:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fckeditor/f...
and let me know if that worked for you.

kars-t’s picture

Yes that helped! :D
Thanks a lot!

scarer’s picture

this still doesn't fix my error. i am still getting the same error.

Artur Formella’s picture

Status: Fixed » Postponed (maintainer needs more info)

Please try to uninstall FCKeditor and install again. It should clean up your cache table.

To uninstall:
-disable FCKeditor module
-uninstall it (admin/build/modules/uninstall)

Please let us know if it works.

yosemite’s picture

same error here

tried uninstall and install, still error
used devel module to clear tables and reinstall fckeditor
---------------------------------------

update
drupal 5.10, disabled fckeditor all errors gone, moved on to blueditor

aharown07’s picture

Right now I get the error if I have FCKeditor enabled on any of the body fields on the admin/user/settings... seems to be OK on the Picture Guidelines field (element is: edit-user-picture-guidelines - the path is: admin/user/settings).

Important note: I had been using this version of fckeditor for several days on my development install without any errors. Just started getting them a few hours ago. Don't know if there is a relationship, but noticed them shortly after installing Advanced User module.

But error went away after I disabled the editor(mostly) on the user settings form.
Didn't want it there anyway, so this is not a problem for me.

aharown07’s picture

Update: started getting error on that page also w/FCK enabled in the picture guidelines field. Disabled there and error cleared.
Same pattern with User Status Notification module fields... edit-user-status-deleted-body and the others on that page (admin/user/user_status)

Artur Formella’s picture

Could you attach a minimal list of enabled modules? It will help.

jthorson’s picture

Got the same error on the 'Site Information' page in a fairly fresh Drupal install.

Disabled all non-required modules (with the exception of FCKEditor), switched back to Garland Theme, and still receiving the error.

Running Drupal 5.12, MySQL 5.0.45, PHP 5.1.6, Apache 2.2.3

FCKeditor 5.x-2.2-rc3, with default settings.

Originally, had installed the following modules (before disabling):
Blog, Book, Color, Comment, Contact, Forum, Help, Menu, Path, Poll, Profile, Search, Taxonomy, Tracker, Upload, 'me' aliases, FCKeditor, IMCE, and Web File Manager.

Update:
Disabled and Uninstalled FCKeditor, downloaded the latest fckeditor.module from cvs, and copied it over my fckeditor.module file - Issue appears to have disappeared for the moment.

aharown07’s picture

@arczif
Sure. There's a whole gaggle of 'em.
acl, ad, admin_links, admin_menu, advanced_forum, advuser, backup, bbcode, captcha, cck, comment_revisions, comment upload, default_filter, devel, discussthis, email_confirm,
fasttoggle, fckeditor, feedapi, flatcomments, forum_access, globalredirect, jstools (calendar), messaging, mimemail, notificaitons, pathauto, persistent_login, print, privatemsg, quote, reftagger, riddler, scheduler, teaserbytype, themesettings, themesettings api, token, user_stats, user_titles, views.

Of these, some of the latest to be installed (when I started seeing the problem but I don't know exactly when) were: advuser, comment upload, email confirm. Can't remember for sure what I enabled before that.

wwalc’s picture

Priority: Minor » Normal
Status: Postponed (maintainer needs more info) » Fixed

I have created a custom CCK field with multiple textareas to reproduce this error.
It was caused by adding the same setting via drupal_add_js() more than once.
I cannot fix the RC3 once it has been released, the latest working version is available as a dev release.

Please install the latest dev release and let me know if it works for you.

Marking it as fixed, feel free to reopen this issue at any time.

bribiz’s picture

I tried the dev release and it disabled fck in the text areas. I completely removed all files and copied the dev release twice. I then copied the old version back and it worked again but with the error. Is there something in the dev release that now breaks?

After I removed the dev release, I still have the error. However, I discovered that by refreshing the page with the error it disappears. Not sure why but thought you should know in case it helps.

FuXXz’s picture

Perhaps it would help! I had the same mistake, but only after i installed "Workflow" module!
FCKEditor avec Workflow = Error
But i updated the fckeditor.module and it works.....until now ;)

wwalc’s picture

@bribiz (and anyone having problems with upgrading to the dev release): remember to run update.php (it just rebuilds menu, no queries are executed) and clear browser's cache, otherwise you may not see FCKeditor at all and little textareas instead.

@anyone: I did manage to reproduce almost all issues reported here (i.e. error on "Site Information" section, "admin/user/settings", editing custom field), RC3 has this awful bug.
Use the dev release until RC5 is out, I cannot reproduce this issue anymore in the latest dev release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

litzastark’s picture

I've just installed RC7 and am getting the same error, which is surprising since it seems like it was fixed months ago.

As mentioned in #13, there does seem to be some interaction with the Workflow module, which I do have installed. I've installed FCKEditor on two sites, one with Workflow installed and one without it; I get the error only on the site with Workflow installed.

Is anyone else noticing this pattern?

fluxrider’s picture

same . rc7 in drupal 5.16 .
Opps
go here http://drupal.org/node/372097

fluxrider’s picture

Status: Closed (fixed) » Active

Bug back in rc7

fluxrider’s picture

Status: Active » Closed (fixed)

okay , new bug then