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 |
Jump to:
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
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
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
#4
Thanks. May be the module should make this as a default. :-) Just a suggestion.
#5
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
Related? #445594: Image Assist and Panels
#7
@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
#445594: Image Assist and Panels is a different bug. See http://drupal.org/node/445594#comment-1758796 for details.
#9
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
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.