Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Dec 2011 at 23:22 UTC
Updated:
26 Jul 2018 at 13:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ludo.rI have the same issue.
Each AJAX action (sort, filter, pagination) throws an AJAX HTTP error.
I updated Views from 3.0-rc3 to 3.0 and ran database updates (there were no database update).
Comment #2
ludo.rI think this a bug, so marking it as is.
Comment #3
Babymaggie commentedHi guys, Im getting a similar issue - I'm running drupal 7.8 and I updated to views 7.x-3.0 Everytime I create a view (or update an old working view) with a sortable ajax I'm getting this when I click sort:
An AJAX HTTP error occurred.
HTTP Result Code: 404
Debugging information follows.
Path: /folder/?q=views/ajax?q=users/admin
StatusText: Not Found
ResponseText:
Page not found | mysite
@import url("http://www.mysite.co/folder/modules/system/system.base.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/system/system.menus.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/system/system.messages.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/system/system.theme.css?lx6gb4");
@import url("http://www.mysite.co/folder/misc/ui/jquery.ui.core.css?lx6gb4");
@import url("http://www.mysite.co/folder/misc/ui/jquery.ui.theme.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/overlay/overlay-parent.css?lx6gb4");
@import url("http://www.mysite.co/folder/sites/all/libraries/shadowbox/shadowbox.css?...");
@import url("http://www.mysite.co/folder/modules/contextual/contextual.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/comment_notify/comment_notify.css?lx...");
@import url("http://www.mysite.co/folder/modules/comment/comment.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/date/date_api/date.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/date/date_popup/themes/datepicker.1....");
@import url("http://www.mysite.co/folder/modules/field/theme/field.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/node/node.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/search/search.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/user/user.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/forum/forum.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/views/css/views.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/ctools/css/ctools.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/pmgrowl/pmgrowl.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/pmgrowl/jgrowl/jquery.jgrowl.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/rate/rate.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/shortcut/shortcut.css?lx6gb4");
@import url("http://www.mysite.co/folder/modules/toolbar/toolbar.css?lx6gb4");
@import url("http://www.mysite.co/folder/themes/simpler/style.css?lx6gb4");
Skip to main content
Options for the administrative overlayIf you have problems accessing administrative pages on this site, disable the overlay on your profile page. Dismiss this message.
I get that 404 are missing pages, but in the preview the views with ajax work great!
Also if I remove the ajax setting everything behaves as you would expect.
I'm thinking of reverting back to my previous version of views to see if it fixes this or maybe I need to try to update Drupal? Could that be the problem? What do you think?
Many thanks for your advice guys, I think these are related issues, if not could someone please move my post.
Best wishes to all!
Comment #4
nod_This is a different bug, see #1359798: Clean urls off break all Ajax views it's because clean urls are off.
Comment #5
Babymaggie commentedThank you nod_ I must have disabled clean urls by mistake.
Anyway re-enabled clean urls, cleared the cache and logged out and back in and that fixed it for me.
I hope they can fix that nasty little bug though!
Thanks again nod_ for your fast and helpful response.
Comment #6
ludo.rIn my Drupal installation, Clean URLs are enabled, but I still get this bug.
Comment #7
longwaveAlso seeing this when trying to use Ajax enabled views in the overlay.
Comment #8
sreynen commentedI'm seeing this error in @font-your-face, which uses AJAX views with /admin/ paths. Report here: http://drupal.org/node/1373188#comment-5448082
Comment #9
longwaveImproving issue title.
Comment #10
Tony Finlay commentedI'm having the same issue as mentioned in #6
I've tried rolling back as far as rc1 but the ajax pagination is broken
Comment #11
afsolano commentedThanks for the improvement in the title
Comment #12
herve commentedSubscribe.
Same issue here, with one of my own view. If i use ajax pager or filter in overlay, i get an AJAX error.
Regards,
herve.
Comment #13
thinkdrupal commentedThe issue appears to be on line 39 in ajax_view.js.
this.element_settings = {
url: ajax_path + window.location.search,
submit: settings,
change to ...
this.element_settings = {
url: ajax_path,
submit: settings,
The previous version(7.x-3.0-rc3) of views did not append 'window.location.search'. Once I removed this, I no longer got the error. Hopefully someone will report why this was added in version 7.x-3.0.
Comment #14
longwaveThat line was changed in #1359798: Clean urls off break all Ajax views
Comment #15
sreynen commentedI've traced the error on both the JS and the PHP end to the point where I'm not sure where to look next. On the JS end, the AJAX request with the query string is coming back with status of 'parsererror'. On the PHP side, I've confirmed that both views_ajax() and ajax_base_page_theme() return successfully both with or without the query string, but ajax_deliver() is only called when the query string is removed. I'm not familiar enough with the AJAX system to know what happens between ajax_base_page_theme() and ajax_deliver(), but that seems to be where the error is happening.
Comment #16
catmurray commentedSubscribing.
Comment #17
spuky commentedError persists in 3.1 the fix from #13 changed a little...
changeing line 36
from
var queryString = window.location.search || '';to
var queryString = '';makes the error go away...
this helps my user using the pagers of admin_menus admin views in the overlay...
Comment #18
nod_This just hides the issue, you'd have to add
console.log(queryString);after the function to see what's getting messed up. I might have time to look at this tonight.I'm changing the title, a HTTP 200 response is not an error, it's just the debugging alert that's pretty useless here.
Comment #19
nod_I'm sorry but I can't reproduce the error, it just work, admin_menu, vbo and all.
Someone has an export of a broken view ? Could you tell me if clean urls are on or off when testing ?
(edit) looks like i finally found how to reproduce, good.
Comment #20
nod_Ok got the issue.
The only problem is that the window.location.search thing works too well. It keeps the render=overlay parameter from the overlay module and it just fail after that.
Comment #21
nod_try this. Looks like render would always be last so i'm just checking the "&" before and not after.
Comment #22
sreynen commentedThe patch in #21 fixes the problem for me.
Comment #23
spuky commented#21 fixes the issue for me too and makes sense I knew my leaving out the window.location.search solution was just a hack to get the site working again..
Comment #24
ludo.rPatch in #21 is fine, there is no more ajax error (I tried in 3.1).
Comment #25
rachelnicolewhite commentedPatch #21 solved all the problems for me as well, thanks so much.
Comment #26
DaraghOB commentedHi
I'm experiencing this issue since upgrading to latest version of Views (7.3.1). Ajax http 500 errors are triggered in Admin view when making any changes to a view. When accessing page views, trying to move to the next page triggers the same error message. I edited the view (a very simple one) to see if there was anything in config that would be causing the error. Views page is now not visible (returns a 500 error as well).
This also happens on a filtered view of the same content type that was created as a totally seperate view and has not been edited (but was working prior to 7.3.1 upgrade). View filters block loads OK but once options are selected filtered view returns a 500 error and page doesn't load.
As this is a core element of the site I'm building out (internal company project but with a very tight deadline) it is a bit of a pain.
Any suggestions?
Comment #27
nod_Have you tried the dev version of views ? lots of patches got committed lately, you might get lucky.
I don't think it's the same issue you're experiencing, in this case there was no error 500.
Comment #28
DaraghOB commentedI've gone to the dev version and the 500 errors are not as frequent (at least the pages are working). I am getting an AJAX timeout error when trying to save views though... i've upped timeout and memory in .htaccess.
Comment #29
nod_That's not the same thing. You should open a different issue with steps to reproduce your error.
As far as this issue is concerned #21 will fix it. It's not perfect but good enough.
Comment #30
dawehnerI could reproduce the problem and in fact this fixed the problem for me. Thanks!
Committed to 7.x-3.x
Comment #31
jkaine commentedPatch in #21 worked great. Thanks for the fix.
Comment #32
afsolano commentedThe patch #21 worked fantastic. Thanks !!!
Comment #33
sammyframson commentedPatch in #21 worked for me as well running views 7x - 3.1. Thanks
Comment #34
nicodv commentedHi, it will be the first time I apply a patch. Can anyone guide me? I'm having the same problem as described (when browsing fonts in @font-your-face)
I tried to follow http://drupal.org/node/60818 but didnt help: no diff -u -r1.51 example.module or other clue that pointed me in the right module (?)
Thanks in advance.
nico
Comment #36
davidseth commentedThe patch #21 is perfect. I was tearing my hair out on this one :)
Please commit this. 9 people (including me) reported that this fixed their problems.
Thanks.
Comment #38
davidseth commentedSorry for the last message about committing. I can see that the latest version of views has already got this in place. Non of the messages above mentioned that this was committed (next time I will just view the newest code!).
Comment #39
deanflory commentedAnyone having lots of AJAX issues might want to try disabling the jquery_update module, worked for me. Just spreading the info, unsure if it's related to this issue.
Comment #40
watergate commentedI had/have the same problem, however, changing jQuery version to 1.7 (or lower) in the jquery_update module configuration form did the trick.
Comment #41
luckyape commentedMrWatergate solution worked for me also, it's possible that < JQuery 1.8 should be added to the requirements for d7 Views module.
Comment #42
tomhung commentedsolution #40 worked for us
Comment #43
albertguedes commentedI have the same problem with ajax, and so, change jquery to 1.7 version fix.
Comment #44
r_wel commentedSame with me although I never got an ajax error code, just a bunch of garbage on the screen - I've got some tech background so I guessed it was an ajax error. Those that don't probably would not have a clue on how to search for help.
I changed to 1.7 and problem went away.
Comment #45
veleiro commentedI am still having this problem even though I switched to Jquery 1.7 or 1.5
Comment #46
darol100 commented@veleiro,
Did you clear the caches ? Maybe that will work. This is the second time that have happen to me and it always works. I can confirm #40 works. I set up to jQuery 1.7 and it works.
Since, this incompatibility issue with the jQuery version, I will change this issue to make jQuery compatible with jQuery 1.8 or higher.
Comment #47
ugintl commentedI am using views 3.14 and it already has the patch from #21. Jquery 1.8 works, but above it, does not work.
Comment #48
gregglesThe issue was fixed as originally titled. I think new issues should be filed as new issues, so marking this back to fixed.
Comment #50
fabriolle commentedWhen I try to add the provinces (location module) exposed filter in the top of a view , I view this message:
Si è verificato un errore HTTP in AJAX.
Codice HTTP di risposta: 500
Di seguito le informazioni di debug.
Percorso: /admin/structure/views/ajax/config-item-extra/......view_name......../page/filter/province
StatusText: Service unavailable (with message)
ResponseText:
My configuration:
Views 7.x-3.20
Location 7.x-3.7
Location Views Filters Ajax 7.x-1.0
Clean URL Enabled
JQuery 1.7 (same error with 1.10)
Comment #51
fabriolle commented