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.

CommentFileSizeAuthor
#20 disable_ajax_by_default-1650420.patch4.05 KBgcb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damiankloip’s picture

I 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.

mrfelton’s picture

Its 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.

mrfelton’s picture

Status: Active » Fixed

Updating 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?

thelmer’s picture

I 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 :

[
    {
        "command": "settings",
        "settings": {
            "basePath": "/",
            "pathPrefix": "",
            "ajaxPageState": {
                "theme": "cimtheme",
                "theme_token": "mOuCmmd_zgIdhMjG4ZGhmOftrH4b6dSgq3h_VUlGw34"
            }
        },
        "merge": true
    }
]

versions : admin_views-1.x-dev and views-3.x-dev

mrfelton’s picture

Status: Fixed » Active

I take back my comment from #3. Its not fixed in latest dev. We still have the problem

ismatkurt’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Assigned: Unassigned » ismatkurt

hi 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.

damiankloip’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Can 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?

ismatkurt’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

you 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

damiankloip’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

You 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.

ismatkurt’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev

i 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

merlinofchaos’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Please stop changing the version on the issue. THis issue started as a D7 version and must remain that way.

ismatkurt’s picture

ok sorry if anyone find a solution plz let me know via pm

grahamC’s picture

Assigned: ismatkurt » Unassigned
grahamC’s picture

For 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.

mrfelton’s picture

damiankloip’s picture

Status: Active » Fixed

This is a views related issue, not admin_views, as the last few comments confirm. Thanks all!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Nora McDougall’s picture

I 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.

Gaurav_drupal’s picture

gcb’s picture

Issue summary: View changes
FileSize
4.05 KB

I'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.

Pravin Ajaaz’s picture

Status: Closed (fixed) » Closed (duplicate)

May be this is a duplicate of https://www.drupal.org/node/1036962