Opened 5 years ago

Closed 5 years ago

#11353 closed Bug (expired)

IE8, Ckeditor.js, Line: 668, Column: 449, Unable to get property 'items' of undefined or null reference

Reported by: OHDev Owned by:
Priority: Normal Milestone:
Component: General Version: 4.3.1
Keywords: Cc:

Description (last modified by Piotrek Koszuliński)

This only happens with IE8

SCRIPT5007: Unable to get property 'items' of undefined or null reference
   File: ckeditor.js, Line: 668, Column: 449

problem is that b.length is 11, while it should be 9 so in the loop at index 10 d is undefined, thus d.items is also undefined.

function h(b) {
                var a = [], e, d, h;
                for(e = 0; e < '''b.length'''; ++e) {
                    d = b[e] , h = {
                    } , "/" == d ? a.push(d) : CKEDITOR.tools.isArray(d) ? (c(h, CKEDITOR.tools.clone(d)) , a.push(h)) : '''d.items''' && (c(h, CKEDITOR.tools.clone(d.items)) , h.name = d.name , a.push(h));
                }
                return a;
            }

I have the following setup in config.js:

    config.toolbar = [
        { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'], items: ['NumberedList', 'BulletedList', '-', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyRight', 'JustifyCenter', 'JustifyLeft', 'JustifyBlock', '-', 'BidiRtl', 'BidiLtr'] },
        { name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
        { name: 'document', groups: ['mode', 'document', 'doctools'], items: ['Save', 'NewPage', 'Preview', 'Print'] },
        { name: 'clipboard', groups: ['clipboard', 'undo'], items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
        { name: 'editing', groups: ['find', 'selection'], items: ['Find', 'Replace', '-', 'SelectAll', '-', 'Scayt'] },
        { name: 'forms', items: ['Checkbox', 'TextField', 'Textarea', 'Select', 'Button'] },
        '/',
        { name: 'basicstyles', groups: ['basicstyles', 'cleanup'], items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
        { name: 'styles', items: ['Font', 'FontSize', 'TextColor', 'BGColor'] },
        { name: 'tools', items: ['Maximize'] }
    ];

    // Toolbar groups configuration.
    config.toolbarGroups = [
        { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
        { name: 'links' },
        { name: 'document', groups: ['mode', 'document', 'doctools'] },
        { name: 'clipboard', groups: ['clipboard', 'undo'] },
        { name: 'editing', groups: ['find', 'selection'] },
        { name: 'forms' },
        '/',
        { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
        { name: 'styles' },
        { name: 'tools' }
    ];

Attachments (1)

bug - locals watch.png (15.6 KB) - added by OHDev 5 years ago.
Printscreen of the locals watch

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by OHDev

Attachment: bug - locals watch.png added

Printscreen of the locals watch

comment:1 Changed 5 years ago by OHDev

The website is Developed with ASP.NET DotNetFramework 4.0, hosted on Intranet, IIS 7.5, 32 bit I'm using the ASP.NET ckEditor wrapper.

comment:2 Changed 5 years ago by Piotrek Koszuliński

Description: modified (diff)

comment:3 Changed 5 years ago by Jakub Ś

Status: newpending

I have tried on IIS 7.5 with CKEditor 3.6.4 ASP.NET with client side updated to CKEditor 4.3.3 Full package (I have exchanged CKE_ASPNET/_Samples/ckeditor/ folder to newer one) but didn’t get this issue.

I have updated config.js to what you have, refreshed cache, reloaded page but nothing happened.

Please provide more details and/or reduced test-case file(s) allowing to reproduce this problem in default CKEditor build (server-side 3.6.4 and client-side 4.3.3 with no core code changes or third-party plugins installed).

comment:4 Changed 5 years ago by OHDev

Have you tried it with Internet explorer 8, or with IE8 Compatibility?

I tried to reproduce this alone but I couldn't yet. I will try again, and sorry for the late reply

Last edited 5 years ago by OHDev (previous) (diff)

comment:5 Changed 5 years ago by Jakub Ś

I tried to reproduce this alone but I couldn't yet. I will try again and sorry for the late reply

It is possible that your application has some third party scripts that conflict with editor thus you get this error.
Another possibility is that you have some third-party plugins in editor that cause this behaviour. Please try with default package only.
Finally you might have some plugin in IE that causes this.

comment:6 Changed 5 years ago by Piotrek Koszuliński

Resolution: expired
Status: pendingclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy