Getting a ton of these:

Warning: preg_match(): Compilation failed: nothing to repeat at offset 124 in _ckeditor_filter_process_styles() (line 171 of sites/all/modules/ckeditor_filter/ckeditor_filter.module).
Warning: array_shift() expects parameter 1 to be array, null given in _ckeditor_filter_process_styles() (line 173 of sites/all/modules/ckeditor_filter/ckeditor_filter.module).

Comments

aschmoe’s picture

Do you have a record of the setttings that are causing this notification?

Thanks!

aschmoe’s picture

Status: Active » Postponed (maintainer needs more info)
xiangrikuiyy’s picture

That's the errors I got

Warning: preg_match(): Compilation failed: nothing to repeat at offset 159 in _ckeditor_filter_process_styles() (line 165 of /var/www/asht/www/sites/all/modules/contrib/ckeditor_filter/ckeditor_filter.module).
Warning: array_filter() expects parameter 1 to be array, null given in _ckeditor_filter_process_styles() (line 166 of /var/www/asht/www/sites/all/modules/contrib/ckeditor_filter/ckeditor_filter.module).

RAWDESK’s picture

I also received these warnings

Warning: preg_match(): Compilation failed: nothing to repeat at offset 236 in _ckeditor_filter_process_styles() (regel 165 van /var/opt/vagrant/data/boniselection/httpdoc/public/sites/all/modules/contrib/ckeditor_filter/ckeditor_filter.module).
Warning: array_filter() expects parameter 1 to be array, null given in _ckeditor_filter_process_styles() (regel 166 van /var/opt/vagrant/data/boniselection/httpdoc/public/sites/all/modules/contrib/ckeditor_filter/ckeditor_filter.module).

but only once for each text format, or after filter settings are changed.

Another finding when adding the same new Valid Style properties at :
admin/config/content/formats/wysiwyg
admin/config/content/formats/full_html
For full_html these properties get allowed in content editing, but for wysiwyg they are still stripped from content.

medieval111’s picture

Found the solution!

I had the same error from the beginning. Turned out to be a PHP 5.3 issue.

Apply patch #2661152: All styles being stripped out to fix this.

medieval111’s picture

Status: Postponed (maintainer needs more info) » Needs review
aschmoe’s picture

Status: Needs review » Closed (won't fix)

Thanks @medieval111, I'm going to mark this as wont-fix since php 5.3 is so old: http://php.net/supported-versions.php

Hopefully your comment helps others though!