Download & Extend

Uncaught TypeError: Cannot read property 'length' of undefined in imce.js line 556- When clicking "Add another item"

Project:IMCE
Version:7.x-1.5
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hello,

I have imce wysiwyg enabled for Full HTML, and in a content type I have a multi value field as well. Even though the filter by default is set to filtered html , so no imce is running, I get this error message and clicking on the "Add Another Item" just hangs.

Comments

#1

Category:bug report» support request

IMCE runs in its own window and musn't be included in node form.
You should find out how imce.js is included in that page.

#2

There is a node reference multi value field, and this error comes up when I click on "Add Another Item" in the multi value field.

#3

This is an IMCE_wysiwyg bug. I had this with a simple voteupdown ajax link.

I just uncommented the lines

// drupal_add_js($imcepath . '/js/imce.js');
// drupal_add_js($imcepath . '/js/imce_set_app.js');

in imce_wysiwyg.module and cleared cache, then it seems to work now.

#4

Status:active» closed (fixed)
nobody click here