Closed (works as designed)
Project:
htmLawed
Version:
7.x-3.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2012 at 13:21 UTC
Updated:
21 Aug 2012 at 10:57 UTC
We're receiving a lot of warnings in the log from the htmLawed 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 defined in _htmLawed_process(), however they don't seem to be referenced in the function body. Should these perhaps have some defaults defined or does this need to be handled by CKEditor?
Comments
Comment #1
alpha2zee commentedIt seems that this is something to do with CKEditor; see this posting. I looked at the codes of a couple of filter modules and none of them seem to provide a default value for the 4th-6th arguments. See line 73 of link_node.module file for the link node module, or line 76 of pathologic.module for the Pathologic module. But then, may be no one has yet reported the PHP warnings that occur with those modules.
Comment #2
hephaestus commentedThanks for the response, I've posted this issue to the CKEditor tracker.
In the mean time, would you be able to suggest some sensible defaults I can patch in as a work around, in order to not have the logs flooded by these warnings?
Comment #3
hephaestus commentedThis has been confirmed as having been fixed in the current dev release of CKEditor.
Comment #3.0
hephaestus commentedFixed paths.