Javascript error when editing views or panels

kazip - April 9, 2009 - 14:31
Project:Image Assist
Version:6.x-2.0-alpha3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Maybe this is a views module issue, but anyway -

If I edit a View, and edit it's page header, or page footer (these fields are textareas) when image assist and FCKEditor are enabled - I get a javascript error "Drupal.settings.img_assist is not defined" in firebug.
I seems that it is somehow connected with that Views module uses ajax to display those fields. And some settings are not loaded.

views version is 6.x-2.3

#1

geraldme - May 2, 2009 - 23:39

I found the same problem. Also, if I enable localization client (l10n_client) module, also trigger the above error. It seems that img_assist want to add a link to every large text input area but img_assist module was not loaded.

#2

EvanDonovan - May 7, 2009 - 23:53
Status:active» needs review

I had this error when editing Panels pages. To fix it, you simply need to define what textareas you want image assist to show up for. I went to admin/settings/img_assist, selected the radio button for image assist to "Show on only the listed textareas", clicked Submit, and the problem was resolved. I only wanted image assist to show up on the default textareas, edit-body and edit-comment.

#3

sun - May 16, 2009 - 23:37
Status:needs review» active

#4

geraldme - May 20, 2009 - 18:56

Thanks. May be the module should make this as a default. :-) Just a suggestion.

#5

Justin W Freeman - June 24, 2009 - 02:36
Title:Javascript error when editing view» Javascript error when editing views or panels

This problem also affects text areas on pop-ups in the panels module.

On those pop-ups this error then means that collapsible fieldsets don't work and when you submit the pop-up you get an error.

#6

naught101 - June 25, 2009 - 06:26

#7

Justin W Freeman - June 30, 2009 - 02:04

@naught101

It depends if you were getting the "Drupal.settings.img_assist is not defined" js error.

It does look very similar.

I tried the fix on #445594: Image Assist and Panels #2 though and it doesn't seem to fix the problem.

#8

Justin W Freeman - July 20, 2009 - 01:22

#9

fernao - July 22, 2009 - 14:27

I'm using img_assist 6.2 and I'm getting the same error, on the textareas of views. It was ok with 6.1.

For me, I just excluded the fields from img_assist (edit-header, edit-footer AND edit-empty, in my case). While the bug is not fixed yet, the error stopped at views.

#10

maxelrod - July 28, 2009 - 03:52

There is a similar problem with Image assist and Panels 3. I have posted more detail here => http://drupal.org/node/332039#comment-1860418

Error: Drupal.settings.img_assist is undefined
Source File: oursite.org/sites/all/modules/img_assist/img_assist.js?4
Line: 15

Disabling image assist makes error go away.

 
 

Drupal is a registered trademark of Dries Buytaert.