Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-beta3
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2008 at 14:24 UTC
Updated:
7 Jul 2008 at 23:46 UTC
Hello,
When attempting to add filters to a display, I get the following error in a Javascript alert:
"An Error Occurred."
The error console reports the following:
Warning: reference to undefined property E.cache[a][d]
Source File: http://devel.gameology.org/misc/jquery.js?9
Line: 13
This triggers after I select a field in the lower pane and click "add." This has also occurred when adding Arguments or Sort Criteria.
This first occurred in FireFox 3.0, but I reproduced in IE7.
Comments
Comment #1
joachim commentedI'm getting this when I click on anything in 'basic settings' for an existing view.
Subscribing.
Comment #2
zwhalen commentedAs a further update, this problem is occurring across every browser I've tried it on, making Views basically unusable.
I've also discovered that after this error appears, my DHTML menus no longer respond. I tried disabling the DHTML Menu module, in case there was a conflict, but the error still appears.
Comment #3
merlinofchaos commentedThe DHTML menus no longer respond because the error you're seeing is a javascript crash. Unfortunately it's crashing inside jquery, which is compressed, so the error message is not very helpful to me. Meaning I can't debug this. :/
You can make Views usable by disabling javascript, I suppose. Hm. In fact, that can make an acceptable workaround, so I have committed that.
Most people are not experiencing this problem, but clearly a hand full are. I need to figure out what is different about your system that might be causing this, so giving as much information about your setup as possible would be good. Also, if you have separate dev environments, it might be helpful to try things out in other environments and see if you can get an installation working somewhere, and maybe start narrowing down things that happen.
Finally, it could be helpful to try firebug and see what the actual responses to the posts are. For the most part they should all be JSON responses; so if you see an actual web page in there, it could be a server issue.
There is some evidence that some particular situations might cause Views' AJAX code to call the wrong URLs, but I haven't narrowed down exactly what, yet.
Comment #4
joachim commentedI'm using Firefox 2.0.0.14, on Windows 2000, running a local server with XAMPP version 1.6.3a.
Is this the output from Firebug you're after?
Comment #5
zwhalen commentedI'm not sure if that firebug data corresponds to what I'm getting (probably does), but I can add a little more info now. I've been using it with javascript turned off, as you suggested, and I was able to get a more specific error message.
This is all from memory since I've been away for a few days and I rearranged things on that Drupal install such that I can't test for this just yet, but if I remember correctly, the problem had to do with a particular date field that I was trying to select. My understanding is that this would indicate a problem in the Data API.
In other words, I think I selected a CCK Date field in the "Add Field" step, and (without JavaScript) encountered a fatal error in Date (or maybe it was Calendar?). I'm guessing that the same fatal error was being encountered earlier in the AJAX, but not being reported as such.
Sorry I can't be more specific. I've tried to re-create the error, but so far I've been unsuccessful, which I guess is a good thing. :)
Comment #6
merlinofchaos commentedYes, that is entirely possible; a bug in the date module could cause that to happen. Good info, thanks.
Comment #7
joachim commentedI got this on a relatively clean D6 I want to use for working on image.module.
All I have on it is: admin_menu (doesn't work), advanced help, coder, devel, image, views.
Comment #8
merlinofchaos commentedjoachim: Your problem is devel.module -- if you update to views beta4 that should be fixed.
Comment #9
joachim commentedYup. Updated to beta4 and latest devel release, and it's working now!
Comment #10
merlinofchaos commentedIt sounds as though everything I can address here has now been addressed.
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.