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.
Hello,
I've download CKEditor 4.5.4 librarie in sites>all>libraries
Using Drupal 7.39
I've added CKEditor in text format.
Then I have these notices :
- Notice: Undefined offset: 2 in wysiwyg_ckeditor_version() (line 85 of C:\wamp\www\drupal7\sites\all\modules\wysiwyg\editors\ckeditor.inc).
- Notice: Undefined offset: 2 in wysiwyg_ckeditor_version() (line 85 of C:\wamp\www\drupal7\sites\all\modules\wysiwyg\editors\ckeditor.inc).
How can this be fixed ?
François
Comments
Comment #2
fransoa CreditAttribution: fransoa commentedSolved.
Following advice on
http://stackoverflow.com/questions/19643758/notice-undefined-offset-2-in-wysiwygs-ckeditor-inc
and
http://youku.io/questions/1506862/notice-undefined-offset-2-in-wysiwygs-ckeditor-inc
I've replaced the line 85
return $version[1] . '.' . $version[2];
with :
return $version[1] . ((isset($version[2])) ? '.' . $version[2] : '');
No more Notice.