Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.