Every time I open a node in edit mode using Drupal 7.12, I get three warnings in succession listed in my recent log messages, as follows:
Warning: Missing argument 4 for ckeditor_link_filter_process(), called in /var/www/drupal-7.12/sites/all/modules/ckeditor/includes/ckeditor.page.inc on line 189 and defined in ckeditor_link_filter_process() (line 233 of /var/www/drupal-7.12/sites/all/modules/ckeditor_link/ckeditor_link.module).
Warning: Missing argument 5 for ckeditor_link_filter_process(), called in /var/www/drupal-7.12/sites/all/modules/ckeditor/includes/ckeditor.page.inc on line 189 and defined in ckeditor_link_filter_process() (line 233 of /var/www/drupal-7.12/sites/all/modules/ckeditor_link/ckeditor_link.module).
Warning: Missing argument 6 for ckeditor_link_filter_process(), called in /var/www/drupal-7.12/sites/all/modules/ckeditor/includes/ckeditor.page.inc on line 189 and defined in ckeditor_link_filter_process() (line 233 of /var/www/drupal-7.12/sites/all/modules/ckeditor_link/ckeditor_link.module).
Followed by this notice:
Notice: Undefined variable: langcode in ckeditor_link_filter_process() (line 234 of /var/www/drupal-7.12/sites/all/modules/ckeditor_link/ckeditor_link.module).
I recently updated my site to use CKEditor 7.x-1.8 since this was a security update to the CKEditor module. So I don't know when this error began to show up (i.e. did the new CKEditor cause an interaction with this link module or vice versa?).
Anyways, any ideas what is causing this and what I can do to silence these warnings and notices upon editing a node? It's filling my log messages but seems to have no other functional issue that I can detect (i.e. the link module seems to work fine).
Comments
Comment #1
anrikun commentedThis is a bug of the CKEditor module.
First of all:
CKEditor Link Filter is not a security filter and should not be called by
ckeditor_filter_xss().Try these:
- Make sure that CKEditor Link Filter is not listed/checked in your profile's *security* filters.
- Clear your Drupal cache
Second:
The way the CKEditor module calls 'process callback' is incomplete. It is supposed to provide all these arguments:
hook_filter_FILTER_process($text, $filter, $format, $langcode, $cache, $cache_id)See http://api.drupal.org/api/drupal/modules!filter!filter.api.php/function/...
Comment #2
alphasupremicus commentedI didn't realize that CKEditor Link was NOT to be enabled in any of the Text Formats. When I disabled this filter from the list of "enabled filters", then the warnings and notice disappeared in the logs yet the the link functionality still works as expected with the CKEditor link button.
I'd say that no further action is required and, if I had time, I'd report the issue to the CKEditor team, but since this issue was caused by a misconfiguration on my part of the link module, I'll avoid poking that other team in the eye for now.
Thanks for the info.