Notice: Undefined index: css_classes in wysiwyg_ckeditor_settings() (line 259 of /home/teambuil/public_html/sites/all/modules/wysiwyg/editors/ckeditor.inc).

This is the error i saw on my website in this morning. Please help me to look at it and solution to fix, thank you :)

this is the code in ckeditor.inc at line 259

if ($styles = wysiwyg_ckeditor_settings_parse_styles($config['css_classes'])) {

Comments

TwoD’s picture

Priority: Major » Minor
Status: Active » Fixed
Issue tags: -undefined index, -wysiwyg, -line 259

This is nothing to worry about, we just missed a check to see if a setting exists before trying to use its value. This won't cause any issue with the site except for the annoying message itself.

If you want to get rid of the notice without moving to Wysiwyg 7.x-2.x-dev, where this has already been fixed, you can change that line to:
if (!empty($config['css_classes']) && ($styles = wysiwyg_ckeditor_settings_parse_styles($config['css_classes']))) {

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.