I use standalone ckeditor-7.x-1.17 and video_filter-7.x-3.3, and read README.txt in video_filter/editors/ckeditor:

3. Go to "Plugins" on the same page. Enable the video filter plugin.

I made that:
1. Copy video_filter/editors/ckeditor to ckeditor/plugins (for looking "Plugin for inserting video tags with video_filter" in "Plugins" ckeditor setting). This working for video_filter 3.1
2. On page /admin/config/content/ckeditor/edit/Full I have errors:

Warning: strpos() expects parameter 1 to be string, array given в функции ckeditor_load_plugins() (строка 342 в файле /sites/all/modules/contrib/ckeditor/includes/ckeditor.lib.inc).
Warning: preg_match() expects parameter 2 to be string, array given в функции ckeditor_load_plugins() (строка 342 в файле /sites/all/modules/contrib/ckeditor/includes/ckeditor.lib.inc).
Notice: Array to string conversion в функции ckeditor_load_plugins() (строка 343 в файле /sites/all/modules/contrib/ckeditor/includes/ckeditor.lib.inc).
Notice: Array to string conversion в функции ckeditor_toolbar_buttons_all() (строка 1765 в файле /sites/all/modules/contrib/ckeditor/includes/ckeditor.admin.inc).
Warning: Illegal offset type in isset or empty в функции locale() (строка 713 в файле /modules/locale/locale.module).
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 'Video filter' AND s.context = '' AND s.textgroup = 'default'' at line 1: SELECT s.lid, t.translation, s.version FROM {locales_source} s LEFT JOIN {locales_target} t ON s.lid = t.lid AND t.language = :language WHERE s.source = :source_0, :source_1 AND s.context = :context AND s.textgroup = 'default'; Array ( [:language] => ru [:context] => [:source_0] => video_filter [:source_1] => Video filter ) в функции locale() (строка 720 в файле /modules/locale/locale.module).

Comments

VVS created an issue. See original summary.

ttkaminski’s picture

I ran into this issue. The problem occurs when the same plugin is provided by two modules. If you recently upgraded the video_filter module, it now provides the video_filter ckeditor plugin (the older version of the module didn't). You now need to delete the plugin you manually installed in the ckeditor/plugins/video_filter to prevent the error from happening. Ideally the ckeditor module should be smart enough to detect this case and throw a more user friendly error/warning.

slpearce’s picture

StatusFileSize
new714 bytes

This is caused by a plugin's path variable being an array instead of a string. Easily fixed. See suggested patch.

ttkaminski’s picture

Although that patch gets rid of the error, it wouldn't recommend it. You still have two plugins installed, so which one is it using? It's best to remove the plugin you don't want, or modify the patch to issue a more user friendly error (that tells you that there is a plugin conflict and you need to remove one).

damienmckenna’s picture

Version: 7.x-1.17 » 7.x-1.x-dev
Status: Active » Needs work
drupal-son’s picture

Hi, same issue here after updating from 7.x-1.16 to 7.x-1.18 (latest stable release at this time).

Thanks

kaloyan.damyanov’s picture

StatusFileSize
new636 bytes

Version 7.x-1.18.

vokiel’s picture

Status: Needs work » Needs review
StatusFileSize
new1.76 KB

Attached a new patch which does a bit more than the one from #7:

  1. Shows a message with drupal_set_message().
  2. Adds entry log with drupal_watchdog() so even when someone will miss the warning it will be found in logs.
  3. Flatterns the whole $plugin array as in case of duplicated plugin all elements are duplicated (path, name, desc, buttons).

  • vokiel committed efed8cb on 7.x-1.x
    Issue #2710817 by slpearce, kaloyan.damyanov, vokiel: Errors after...
vokiel’s picture

Status: Needs review » Fixed
vokiel’s picture

Status: Fixed » Closed (fixed)