Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.1
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2008 at 05:06 UTC
Updated:
21 Apr 2009 at 23:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
ultimateboy commentedMoving to Views project.
Comment #2
1kenthomas commentedI find the same error when the base_url in settings.php is not set to the current/a valid site URL; AJAX uses the URL from settings.php and fails.
Comment #3
webchickDuplicate of #295246: An error occurred at /drupal/admin/build/views/ajax/preview/.
Comment #4
merlinofchaos commentedThis is probably a different error.
When you get this error I need to know if there was an error on the server. Look in your php/apache log and see.
Failing that, install firebug and use its console to look at the POST response to the ajax request and paste that here.
1.kenthomas: Does a site even work with the base_url set to something invalid?
Comment #5
sunWas also getting an error when hitting the preview button with latest code in CVS. Dunno, whether it is actually the same as this issue.
In my Drupal logs I only had:
In the hope to be able to debug it, I disabled AJAX/JS support for Views in the settings. Tried to preview again and: bam, completely different error, JS this time:
After fixing that with the attached patch and re-enabling the AJAX/JS support, the live previews suddenly started to work again.
Strange. But worth a fix. :)
Comment #6
ekes commentedDon't know if this is going to help any, but I'm getting this error on my dev box because of modsecurity (mod_security-2.5.9-1.fc10). At the moment I've not actually the faintest if it's a flaw in the logic of modsecurity rules or if the ajax is unfriendly.
Sample error log:-
The rule triggered is:-
Comment #7
merlinofchaos commentedThanks, sun.
For the modsecurity issue, see: http://drupal.org/node/347753