I have tried wysiwyg filter and html purifier as text filters so that I can allow image resizing (style tags), but with both I have encountered errors re. Missing Argument
Warning: Missing argument 5 for _htmlpurifier_process(), called in C:\mowes_portable\www\drupal\sites\all\modules\ckeditor\includes\ckeditor.page.inc on line 241 and defined in _htmlpurifier_process() (line 148 of C:\mowes_portable\www\drupal\sites\all\modules\htmlpurifier\htmlpurifier.module).
and:
Notice: Undefined variable: langcode in _htmlpurifier_process() (line 149 of C:\mowes_portable\www\drupal\sites\all\modules\htmlpurifier\htmlpurifier.module).
Please see issue: http://drupal.org/node/1219348
I've looked into HTMLawed but have seen that someone has the same error for this.
I am going to have to abandon CKEditor unless I can resolve this.
I would be very grateful if you have any suggestions.
Thanks
Gina
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedI make a little fix for this bug.
I commit it to GIT (diff).
Pls check last DEV version, if it doesn't work pls reopen this issue (change status to needs work).
Greetings
Comment #2
GinaF CreditAttribution: GinaF commentedMany thanks for your response.
Unfortunately, I've already abandoned CKEditor and moved to a different editor. I hope this fix will help others though.
Gina
Comment #3
GinaF CreditAttribution: GinaF commentedI tested your 8 May 7.x-1.x-dev release on my development site (7.x-1.9+7-dev).
Unfortunately, there are still errors:
AND
There used to be missing argument 4, 5 & 6, so you've fixed something...
Thanks
Gina
Comment #4
dczepierga CreditAttribution: dczepierga commented@GinaF, really thx for report this. I make next fix for it and commit to GIT (diff).
I don't understand why they have param in function which they don't use anywhere and they don't set default value to it... but ok i fix it.
Pls update to last DEV version and check does u have any warnings/notices.
Greetings
Comment #5
GinaF CreditAttribution: GinaF commentedHi
Thanks for your time on this.. Unfortunately there's still one error:
The missing argument seems to be resolved though.
Gina
Comment #6
dczepierga CreditAttribution: dczepierga commentedCould u write which text format do u use and which filters u have enabled in this format?
Greetings
Comment #7
GinaF CreditAttribution: GinaF commentedUsing Filtered HTML.
I have WYSIWYG Filter and also Image Resize Filter enabled.
I have disabled Drupal's "limit allowed HTML tags"
Comment #8
dczepierga CreditAttribution: dczepierga commented@GinaF, i've try to reproduce this again and i don't get any errors... Pls try to update to last DEV version of CKEditor module and last version of CKEditor library.
If problem still exists pls create new issue for it - may be someone have this same error and help how to reproduce/fix it.
Greetings
Comment #9
GinaF CreditAttribution: GinaF commentedI did as you suggested, but unfortunately still get the error. I'll open a new issue.l
Thanks for trying.