Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
TwoDThis 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']))) {