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

fransoa created an issue.

fransoa’s picture

Solved.

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.