Hi,
[Sorry for sloppy english]
I've encountered some kind of a weird problem which is really walking on my nerves almost a month.

I've added a custom image field to user profiles:
- When the User-1 trys to adds or remove images to this field, everything works fine and it is okay.

- But when other users (individual who own regular accounts) try to remove the already added images of this field in the edit page of their profiles, after clicking ajaxed-remove-button, they receive this error (as shown in chrome google browser):
Uncaught TypeError: Cannot read property 'length' of undefined in imce.js

In other words only User-1 has the ability to add/remove images, in this field, using ajax feature! Other accounts recieve error!

What could cause this?
Any help is greatly appreciated.

Comments

ufku’s picture

Category: bug » support

If you are asking questions you should mark your issue as support request. A bug report must include the steps to reproduce the bug.

First try to figure out how imce.js is included in that page. It shouldn't be there.
You may start with a fresh install and enable the modules one by one in order to understand what's going on.

sa3er’s picture

You're right, sorry for the wrong category.

Well it's not possible to halt the site and do a fresh install since it is in production and I've tried enabling and disabling serveral modules that I was suspicious about, but no luck. The only time everything works fine is just when IMCE module is disabled.

I also put a TinyMCE editor (long text summery field) in profile edit page. and using IMCE Wysiwyg bridge module I've added the IMCE functionality to TinyMCE editor. maybe that is causing the problem!?

Thanks for your time.
Again any help is greatly appreciated.

sa3er’s picture

Status: Active » Closed (fixed)

I have IMCE Wysiwyg bridge module installed and thats why the imce.js is loaded in that page.

But any way the problem was caused by miss configuration of User protect module.
Do not enable roles protection for users.