Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Got this warning after updated to 6.x-1.5:
warning: array_key_exists(): The first argument should be either a string or an integer in /var/www/xxx/sites/all/modules/ckeditor/ckeditor.module on line 1285.
Maybe it is because I use PHP 5.3.5?
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedHi,
I make a little fix and commit it to GIT. Could u try to update to last DEV version and write does it help or not?
Greetings
Comment #2
Plus CreditAttribution: Plus commentedSame issue on PHP 5.2.12. Patch helps (latest DEV fix this issue).
Comment #3
mkesicki CreditAttribution: mkesicki commentedThx @Plus for review. Anyone else can confirm if latest DEV fix this issue ?.
Comment #4
kipman CreditAttribution: kipman commentedI have the same problem...
I come back from 6.x-1.5 to 6.x-1.4 and is ok, but i don't understand this problem...
Comment #5
metakel CreditAttribution: metakel commentedIt seems to me that the warning at the dev version is gone.
Comment #6
mkesicki CreditAttribution: mkesicki commented@kipman can you try latest DEV version ? This should fix this issue.
Thx @metakel for report issue and for test latest DEV.
Comment #7
u210ks CreditAttribution: u210ks commentedsubscribing
Comment #8
dczepierga CreditAttribution: dczepierga commented@u210ks, pls check last DEV version, there this bug is fixed.
Greetings
Comment #9
vito8877 CreditAttribution: vito8877 commentedIf it is "fixed" why not update 6.x-1.5 version?
Comment #10
dczepierga CreditAttribution: dczepierga commented@vito8877, ckeditor module in version 6.x-1.5 is released so u cannot do any changes in this version... This fix will be released in next version od CKEditor module...
Greetings
Comment #11
Dxxxs CreditAttribution: Dxxxs commentedI also have this error
warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in .../sites/all/modules/ckeditor/ckeditor.module on line 1285.
Comment #12
mkesicki CreditAttribution: mkesicki commented@Dxxxs have you tried latest DEV version ?
Comment #13
u210ks CreditAttribution: u210ks commentedconfirmed, the warning is fixed in the latest DEV version
However, I'm not able to edit a long content with images and text in it. For example: when I'm at the bottom of the content and click somewhere in the text to edit or add something, it expands the text area and moves me up to the toolbar. When I scroll down again to the bottom of the text area and click somewhere in the text it moves up to the toolbar again.
I'm able only to edit the text area when I switch to plain text editor, but in this case having a WYSIWYG editor is pointless.
Maybe I'm missing some setting here. Not sure if I explained well the issue I'm having.
Thanks for the great work!
Comment #14
dczepierga CreditAttribution: dczepierga commented@u219ks, try to update to last CKEditor library from http://ckeditor.com . As i remember good it was problem with it in the past, but they fix it...
Greetings
Comment #15
kuzmich CreditAttribution: kuzmich commentedHi!
language_default() function return the object of language property. It can not be use as array keys!
This correct (IMHO):
Comment #16
mkesicki CreditAttribution: mkesicki commentedthx
@kuzmich we will check this.
Comment #17
mkesicki CreditAttribution: mkesicki commented@kuzmich I checked this and in code there is
Please check latest DEV version, this bug is fixed in it.
PS. language_default doesn't return object but it's property or string -> refer to http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/langua...
Comment #18
thongchai CreditAttribution: thongchai commentedthx so much it work for me. :)
Comment #19
kuzmich CreditAttribution: kuzmich commentedYes. When the procedure is called with a parameter, it return a string...
Comment #20
efeefe CreditAttribution: efeefe commentedsubscribing...
Comment #22
mkesicki CreditAttribution: mkesicki commented