After saving a node the json returned by "/views/ajax?title=kold&type=All&name=&status=All&vid=All" ( see output below ) is shown instead of the content page. This happens only if the node to edit is opened after a search in the content view.

[
    {
        "command": "settings",
        "settings": {
            "basePath": "/",
            "pathPrefix": "",
            "ajaxPageState": {
                "theme": "kalklandet",
                "theme_token": "_HOyjn1CWY--KtXNIrfKmX--IqiQOwEHX-TfwwAMdCw",
                "css": [ ]
            },
            "colorbox": {
                "opacity": "0.85",
                "current": "{current} of {total}",
                "previous": "« Prev",
                "next": "Next »",
                "close": "Close",
                "maxWidth": "100%",
                "maxHeight": "100%",
                "fixed": true,
                "__drupal_alter_by_ref": [
                    "default"
                ]
            },
            "overlay": {
                "paths": {
                    "admin": "media/*/edit\nmedia/*/multiedit\nmedia/*/delete\nnode/*/edit\nnode/*/delete\nnode/*/revisions\nnode/*/revisions/*/revert\nnode/*/revisions/*/delete\nnode/add\nnode/add/*\noverlay/dismiss-message\nuser/*/shortcuts\nadmin\nadmin/*\nbatch\ntaxonomy/term/*/edit\nuser/*/cancel\nuser/*/edit\nuser/*/edit/*",
                    "non_admin": "admin/structure/block/demo/*\nadmin/reports/status/php"
                },
                "ajaxCallback": "overlay-ajax"
            }
        },
        "merge": true
    }

]

Comments

damiankloip’s picture

I can't replicate this beahviour, everything is working fine for me. Not sure it would be an admin_views issue anyway. What versions of views, admin_views etc... are you using?

sun’s picture

Status: Active » Closed (cannot reproduce)

This is a known issue with Views, potentially only earlier versions.

Definitely not caused by admin_views.

gary.evans’s picture

Did you find a solution to this? I'm having the same issue, only when admin_views is enabled. I'm using views 7.3.5

Thanks

nally’s picture

GregSmith104’s picture

I am also experiencing the same problem and thanks to this issue I've been able to replicate the problem every time. It only happens when I edit a node after searching for it on the Find content page with Admin Views enabled.

Additional details are here: http://drupal.stackexchange.com/questions/93881/why-am-i-getting-a-json-...

The problem is caused by the destination url arguments. If they are removed, the problem goes away.

akalata’s picture

re #4: I'm getting the returned JSON even without Overlay enabled.

badrange’s picture

Version: 7.x-1.x-dev » 7.x-1.2
Priority: Major » Normal
Issue summary: View changes
Status: Closed (cannot reproduce) » Active

Turning off AJAX for the Find Content view (Administration:Nodes) seems to fix this problem.

badrange’s picture

Sorry for spamming you, I now see that this is indeed caused by a Views bug - that has a patch for it:
https://drupal.org/node/1650420

Would it make sense to add a note about this issue and it's solution on the project page (or even a workaround)?

Since you already state: "Filter all administrative views via AJAX." on the front page.

r4wils’s picture

I have updated to the current dev version and have rolled back to version 7.x.3-dev and still have this issues. Any advice?

r4wils’s picture

I discovered my issue, I was using jquery 1.8 and needed to downgrade to 1.7

pachabhaiya’s picture

i had the same problem. downgrading jquery version from 1.8 to 1.7 fixed it. thanks r4wil.

damiankloip’s picture

Status: Active » Closed (works as designed)

This is still not an amin views problem.

ultimike’s picture

I'm thinking that this issue is related to https://www.drupal.org/node/1036962

-mike

cozzamara’s picture

Hi, I have the same issue with jquery 1.10 and I use JQuery update module. If I set jquery 1.7 the issue does not happen more

damienmckenna’s picture

Please make sure you use the latest release of Views, it should behave better with newer releases of jQuery.

cozzamara’s picture

I have Version: 7.x-3.23 installed and jQuery Update Version: 7.x-2.7.

cozzamara’s picture

Sorry but I made a mistake...My Issue happens in Views module when edit certains view....not Administration Views..
Please sorry