On /admin/content if you search for some content using using one of the provided filters (I tested with a title search), click apply to initiate an ajax search, and then click on one of the operations for one of the returned nodes (edit or delete). It takes you to the node form, and you can edit it, or choose to delete it and all is fine, until you save (of confirm in the case of delete). The action is actually carried out as normal, but the redirect back to /admin/content to doesn't work and lands you on a white screen with some js printed on the page:
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"yourconcern","theme_token":"DNr-PRHqN1cAqfQNF4WSRyYNHwFTL3lGRGYN0dRvPGs","css":[]},"colorbox":{"opacity":"0.85","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"Close","maxWidth":"100%","maxHeight":"100%","fixed":true,"__drupal_alter_by_ref":["default"]}},"merge":true}]
The URL at this point it http://example.com/views/ajax?title=test&type=All&name=&status=All&vid=All.
Attempting to visit that URL directly results in the same error.
Comment | File | Size | Author |
---|---|---|---|
#20 | disable_ajax_by_default-1650420.patch | 4.05 KB | gcb |
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedI am not getting this at all, plus you only get a query string appended to the url when you aren't using ajax. I have just tried with and without ajax and it works fine for both.
What theme are you using? It could be something to do with this. See if you get the same with bartik. Also, which version of this module and views are you using? If you aren't using the dev versions, can you try those.
Comment #2
mrfelton CreditAttribution: mrfelton commentedIts all done in standard Seven admin theme, no overlay. Latest dev code of this module, views 3.3.
> "plus you only get a query string appended to the url when you aren't using ajax"
I am using ajax - that is how the module is configured by default. We have't adjusted these admin views at all.
Comment #3
mrfelton CreditAttribution: mrfelton commentedUpdating to latest views 7.x-3.x dev code has resolved the issue! Thanks. Possibly worth noting somewhere on the project page that it currently required latest views dev?
Comment #4
thelmer CreditAttribution: thelmer commentedI get the same error when enabling AJAX in the view.
After a search in the view the edit link is changed from :
../node/1/edit?destination=admin/content
to :
../node/1/edit?destination=admin/content%3Fq%3Dviews/ajax%26title%3Dkold%26type%3DAll%26name%3D%26status%3DAll%26vid%3DAll
And when the node is saved the page is saved but this is shown instead of the content list :
versions : admin_views-1.x-dev and views-3.x-dev
Comment #5
mrfelton CreditAttribution: mrfelton commentedI take back my comment from #3. Its not fixed in latest dev. We still have the problem
Comment #6
ismatkurt CreditAttribution: ismatkurt commentedhi everyone, i have the same problem, when i tried to save a node, submit button changes to loading but then gives a popup error and says: "ajax.module an unknown error occured."
can anyone help me.
Comment #7
damiankloip CreditAttribution: damiankloip commentedCan you not just change the branches of issues please. I would guess that maybe you have some other modules enabled that are doing stuff with ajax maybe? have you also tried this with one of the core themes?
Comment #8
ismatkurt CreditAttribution: ismatkurt commentedyou totally right sorry :)
i have changes my themes(garland) a bit. css and php files.
i had installed search and scan module but it caused lots of problems then i disabled and removed it.
primarly and lately modules that I installed and used are:
Ajax,
CCK,
Multilanguage module: Localization update,Internationalization,Menu translation
Facebook Like Button,
views,
webforms
thank you
Comment #9
damiankloip CreditAttribution: damiankloip commentedYou changed the issue version again!
Have you disabled ajax module? That might be where your error is coming from. I don't think this is an admin views problem.
Comment #10
ismatkurt CreditAttribution: ismatkurt commentedi tried it in both way, first disabled then reactive it but i didnt change.
Addition to this, i just figured out that I am having this problem just for one page :s
Comment #11
merlinofchaos CreditAttribution: merlinofchaos commentedPlease stop changing the version on the issue. THis issue started as a D7 version and must remain that way.
Comment #12
ismatkurt CreditAttribution: ismatkurt commentedok sorry if anyone find a solution plz let me know via pm
Comment #13
grahamCI'm seeing this too. Probably a duplicate of #1036962: Edit link destination incorrect when using AJAX-enabled views
Comment #14
grahamCFor what it's worth, we've been using the patch from #1036962-29: Edit link destination incorrect when using AJAX-enabled views and no longer see the issue.
Comment #15
mrfelton CreditAttribution: mrfelton commentedSame for me #1036962: Edit link destination incorrect when using AJAX-enabled views resolves the issue.
Comment #16
damiankloip CreditAttribution: damiankloip commentedThis is a views related issue, not admin_views, as the last few comments confirm. Thanks all!
Comment #18
Nora McDougall CreditAttribution: Nora McDougall commentedI have an AJAX error that only shows up when using Administration Views. HTTP Result Code: 200. In our case, we are on a testing server that does not work with Clean URLs. It almost seems like an addressing problem.
Comment #19
Gaurav_drupalRefer
http://drupal.stackexchange.com/questions/93881/why-am-i-getting-a-json-...
This solved the problem for me.
Comment #20
gcbI'm attaching a patch which disables Ajax by default. Understood that this is perhaps a Views bug more than admin_views, but setting this value by default makes life easier for build processes, etc, and anyone who doesn't want to hunt down workarounds can just apply this patch.
Comment #21
Pravin Ajaaz CreditAttribution: Pravin Ajaaz commentedMay be this is a duplicate of https://www.drupal.org/node/1036962