We're receiving a lot of warnings in the log from the CKEditor process callback:

Warning: Missing argument 6 for _htmLawed_process(), called in /home/{user}/public_html/sites/all/modules/ckeditor/includes/ckeditor.page.inc on line 241 and defined in _htmLawed_process() (line 32 of /home/{user}/public_html/sites/all/modules/htmLawed/htmLawed.module).

This is referring to the $langcode, $cache, $cache_id parameters defined in _htmLawed_process() and other filter modules, which aren't provided by CKEditor.

I initially posted this issue to the htmLawed issue tracker, however they believe it to be an issue with CKEditor, discussion here.

Comments

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Pls update to last DEV version. This bug should be fixed there.
After check pls write does it work or not.

Greetings

hephaestus’s picture

Hi dczepierga, upgrading our test site to the dev release did indeed resolve the issue. As an interim solution on the live site, I migrated the relevant changes from the dev release, notably:

Added:
$cache_id = $_POST['input_format'] . ':' . '' . ':' . hash('sha256', $text);

Replaced the process callback line with:
$text = $filters[$name]['process callback']($text, $format_filters[$name], $_POST['input_format'], '', TRUE, $cache_id);

This has fixed the issue for us without needing to upgrade the entire module on our live site.

dczepierga’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

U should change also $_POST['input_format'] to $format, because object is needed in this parametr.

After change everything works fine and this bug is fixed in DEV version, so i closed this issue.

Greetings

hephaestus’s picture

Thanks, I've switched those out now. I'd assumed $format had some code behind it that wasn't in the current release, but it seems that's not the case.