If I try to change view, for example, add filter I am getting this error. See attached image

CommentFileSizeAuthor
#2 Schermata 2011-04-07 a 18.10.27.png127.95 KBAle Deva
error.png43.43 KBnikkubhai

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

You should proboably enable php error display.

Once you have this it's possible to see the actual error you have on your site.
See http://drupal.org/node/571990 about more help how to produce a usable bug report. Thanks!

Ale Deva’s picture

I don't know if it's the same issue, but I encountered an AJAX problem as well.

I haven't done anything on the website a part from installing and enabling Views module, Ctools module and Advanced Help module. The website is basically still virgin.
Now if I go into Structure>Views and I click on one of the enable buttons on the right (see attached picture at the end of the post) I get this huge error.

La pagina sul server http://localhost:8888 riporta:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /forma-local-2/admin/structure/views/view/archive/enable?token=BoFOyecLbTWau_qbjx7xKXGT16eOhFxd_AJFQT2rPyI
StatusText: OK
ResponseText: [{"command":"settings","settings":{"basePath":"\/forma-local-2\/","ajaxPageState":{"theme":"bartik","theme_token":"ylkd1UwQBFNfn2u6QduVzWAxv3q48sPqAI564U7BXBE","css":[]}},"merge":true},{"command":"insert","method":"replaceWith","selector":"#ctools-export-ui-list-items","data":"\u003ctable id=\"ctools-export-ui-list-items\" class=\"sticky-enabled\"\u003e\n \u003cthead\u003e\u003ctr\u003e\u003cth class=\"views-ui-name\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/archive\/enable?order=name\u0026amp;sort=asc\" title=\"sort by View name\" class=\"active\"\u003eView name\u003c\/a\u003e\u003c\/th\u003e\u003cth class=\"views-ui-description\"\u003eDescription\u003c\/th\u003e\u003cth class=\"views-ui-tag\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/archive\/enable?order=tag\u0026amp;sort=asc\" title=\"sort by Tag\" class=\"active\"\u003eTag\u003c\/a\u003e\u003c\/th\u003e\u003cth class=\"views-ui-path\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/archive\/enable?order=path\u0026amp;sort=asc\" title=\"sort by Path\" class=\"active\"\u003ePath\u003c\/a\u003e\u003c\/th\u003e\u003cth class=\"views-ui-operations\"\u003eOperations\u003c\/th\u003e \u003c\/tr\u003e\u003c\/thead\u003e\n\u003ctbody\u003e\n \u003ctr title=\"Machine name: archive\" class=\"ctools-export-ui-enabled odd\"\u003e\u003ctd class=\"views-ui-name\"\u003e\u003cdiv class=\"views-ui-view-title\"\u003eArchive\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-displays\"\u003eDisplays: \u003cem\u003eBlock, Page\u003c\/em\u003e\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-storage\"\u003eIn code\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-base\"\u003eType: Content\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd class=\"views-ui-description\"\u003eDisplay a list of months that link to content for that month.\u003c\/td\u003e\u003ctd class=\"views-ui-tag\"\u003edefault\u003c\/td\u003e\u003ctd class=\"views-ui-path\"\u003e\u003ca href=\"\/forma-local-2\/archive\"\u003earchive\u003c\/a\u003e\u003c\/td\u003e\u003ctd class=\"views-ui-operations\"\u003e\u003cdiv class=\"ctools-dropbutton-no-js ctools-dropbutton ctools-button\" id=\"ctools-button-3\"\u003e\u003cdiv class=\"ctools-link\"\u003e\u003ca href=\"#\" class=\"ctools-twisty ctools-text\"\u003eopen\u003c\/a\u003e\u003c\/div\u003e\u003cdiv class=\"ctools-content\"\u003e\u003cul class=\"\"\u003e\u003cli class=\"edit first\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/archive\/edit\"\u003eEdit\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"disable\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/archive\/disable?token=MFS7cV5VcVqLJcLm60a0aJD-bT4W6X6jCBdLZlX6_1U\" class=\"use-ajax\"\u003eDisable\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"clone\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/archive\/clone\"\u003eClone\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"export last\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/archive\/export\"\u003eExport\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\u003c\/div\u003e\u003c\/div\u003e\u003c\/td\u003e \u003c\/tr\u003e\n \u003ctr title=\"Machine name: frontpage\" class=\"ctools-export-ui-disabled even\"\u003e\u003ctd class=\"views-ui-name\"\u003e\u003cdiv class=\"views-ui-view-title\"\u003eFront page\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-displays\"\u003eDisplays: \u003cem\u003eFeed, Page\u003c\/em\u003e\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-storage\"\u003eIn code\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-base\"\u003eType: Content\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd class=\"views-ui-description\"\u003eEmulates the default Drupal front page; you may set the default home page path to this view to make it your front page.\u003c\/td\u003e\u003ctd class=\"views-ui-tag\"\u003edefault\u003c\/td\u003e\u003ctd class=\"views-ui-path\"\u003efrontpage, rss.xml\u003c\/td\u003e\u003ctd class=\"views-ui-operations\"\u003e\u003cdiv class=\"ctools-dropbutton-no-js ctools-dropbutton ctools-button\" id=\"ctools-button-1\"\u003e\u003cdiv class=\"ctools-link\"\u003e\u003ca href=\"#\" class=\"ctools-twisty ctools-text\"\u003eopen\u003c\/a\u003e\u003c\/div\u003e\u003cdiv class=\"ctools-content\"\u003e\u003cul class=\"\"\u003e\u003cli class=\"enable first\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/frontpage\/enable?token=BoFOyecLbTWau_qbjx7xKXGT16eOhFxd_AJFQT2rPyI\" class=\"use-ajax\"\u003eEnable\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"edit\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/frontpage\/edit\"\u003eEdit\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"clone\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/frontpage\/clone\"\u003eClone\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"export last\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/frontpage\/export\"\u003eExport\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\u003c\/div\u003e\u003c\/div\u003e\u003c\/td\u003e \u003c\/tr\u003e\n \u003ctr title=\"Machine name: glossary\" class=\"ctools-export-ui-disabled odd\"\u003e\u003ctd class=\"views-ui-name\"\u003e\u003cdiv class=\"views-ui-view-title\"\u003eGlossary\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-displays\"\u003eDisplay: \u003cem\u003ePage\u003c\/em\u003e\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-storage\"\u003eIn code\u003c\/div\u003e\n\u003cdiv class=\"views-ui-view-base\"\u003eType: Content\u003c\/div\u003e\n\u003c\/td\u003e\u003ctd class=\"views-ui-description\"\u003eA list of all content, by letter.\u003c\/td\u003e\u003ctd class=\"views-ui-tag\"\u003edefault\u003c\/td\u003e\u003ctd class=\"views-ui-path\"\u003eglossary\u003c\/td\u003e\u003ctd class=\"views-ui-operations\"\u003e\u003cdiv class=\"ctools-dropbutton-no-js ctools-dropbutton ctools-button\" id=\"ctools-button-2\"\u003e\u003cdiv class=\"ctools-link\"\u003e\u003ca href=\"#\" class=\"ctools-twisty ctools-text\"\u003eopen\u003c\/a\u003e\u003c\/div\u003e\u003cdiv class=\"ctools-content\"\u003e\u003cul class=\"\"\u003e\u003cli class=\"enable first\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/glossary\/enable?token=BoFOyecLbTWau_qbjx7xKXGT16eOhFxd_AJFQT2rPyI\" class=\"use-ajax\"\u003eEnable\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"edit\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/glossary\/edit\"\u003eEdit\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"clone\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/glossary\/clone\"\u003eClone\u003c\/a\u003e\u003c\/li\u003e\n\u003cli class=\"export last\"\u003e\u003ca href=\"\/forma-local-2\/admin\/structure\/views\/view\/glossary\/export\"\u003eExport\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\u003c\/div\u003e\u003c\/div\u003e\u003c\/td\u003e \u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n","settings":null}]Drupal for Firebug General MessagesThere were no messages sent to the general log. Please use "firep($item, $optional_title)" to output messages to this console.Query Logging is Not EnabledPlease enable "Collect query info" in the Devel Module Settings (admin/settings/devel) to use this feature. $form->ctools_export_ui_list_form $form = (      [#prefix] => [<div class="clearfix">]        [#suffix] => [</div>]        [#attached] => array (            [js] => array (                [0] => [misc/ajax.js]                [1] => [misc/progress.js]                [2] => [misc/jquery.form.js]                [3] => [sites/all/modules/contrib/ctools/js/auto-submit.js]            )        )        [#attributes] => array (            [class] => array (                [0] => [ctools-auto-submit-full-form]            )        )        [first row] => array (            [#prefix] => [<div class="container-inline element-invisible ctools-export-ui-row ctools-export-ui-first-row clearfix">]            [#suffix] => [</div>]            [search] => array (                [#type] => [textfield]                [#title] => [Search]            )            [submit] => array (                [#type] => [submit]                [#id] => [ctools-export-ui-list-items-apply]                [#value] => [Apply]                [#attributes] => array (                    [class] => array (                   &nbsp

I think it's not even all the text, but with a cmd+a and cmd+c it's the maximum I could obtain.

Anyway even if I get this error pressing the enable button, then the view seems to be enabled.

I'm running Drupal-7.0 on MAMP.
Views module version is 7.x-3.0-beta3.
Ctools module is 7.x-1.0-alpha4.
Advanced help module is 7.x-1.0-beta1.

If you need any specific information let me know.
I don't know if this is the php error you need to see. If not, let me know how can I get it.

Thanks
Ale

Ale Deva’s picture

I solved the problem re-building everything from scratch.
It might have been a corrupted Drupal installation, who knows.

nikkubhai’s picture

Even I am not facing this problem anymore.

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

So let's mark this as fixed unless someone get's the problem again.

Pollydor’s picture

FYI, I get this error when module Drupal for Firebug is enabled. Disabling it makes editing views work again.

hozt’s picture

Check your apache server logs for any errors. I was having a similar problem and it was being caused by apache mod_security.

travisimo’s picture

So I just randomly started getting this AJAX error all of a sudden after successfully building and launching a website with 4 functioning views rules. I went back to change the sort order of the blog teaser i made with Views and when i clicked update i get this

"An error occurred at http://www.scarecrowfoundation.org/admin/build/views/ajax/config-item/bl....

Error Description: 0: "

So then i decided to rebuild the rule but now i get errors all the time when i try and do a majority of things. Add-Item as well. Help!!!

Thanks in Advance.
Travis

The website is www.scarecrowfoundation.org.

travisimo’s picture

I discovered my problem.

Apparently if you have secure pages installed and your admin, user pages activated to be https:// this screws drupal and ajax ALL UP. Temp fix until secure pages fixes this is to simply disable those pages from being secured and make changes as normal.

Status: Fixed » Closed (fixed)

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

raulmuroc’s picture

Status: Closed (fixed) » Active

Getting the same error when trying to import *.xml file obtained by apply BloggerImporter7.x-1.0-alpha2 module on Drupal 7.

dawehner’s picture

What does a ajax error in views do have to do with the bloggerimporter module? I don't get it.

bojanz’s picture

Status: Active » Closed (fixed)

Absolutely nothing.

chigori’s picture

I am currently receiving this problem when I try to edit views with Chrome. Switched to Firefox and everything is working normal.

RAS’s picture

Thanks chigori. I was having an ajax problem. I was using Chrome and after reading your post, switched to Firefox and everything is working normal for me as well.

closed’s picture

Yea, thank you chigori. Switching from Chrome to Firefox worked for me, even after clearing Chrome's cache. I also do not currently have secure pages installed.

BadboyD’s picture

Issue summary: View changes

I was running in to this issue as well. And I wanted to share that it was the "Ad Blocker" add on for Chrome that was causing error. I paused Ad Blocker and I was able to edit my views again.

GMahe’s picture

I had the same problem and then I realized the website didn't have a 301 on http://mysite.com to http://WWW.mysite.com which was causing the problem.
You need to use the same url as the one it tells you in the error message.

bearstar’s picture

Disabling Ad Blocker solved this for me, too. Not sure if it was related to my view being called "Ad Banner"

javiereduardo’s picture

In my case it happened when I was on local.

so, in settings.php I uncommented and changed:

$base_url = 'http://mylocaldomain.com';

jaesperanza’s picture

Ended up exporting then re-importing back my View for it to work.

Before that, I have disabled recent modules installed just right before the issue - there was a bunch of them (probably one of those related to user filters, terms, and IP) as the site was on early dev stage. Tried everything else, switching cross browsers, disabling Ad Blocker and similar extensions, base URL, switching themes, jQuery versions, server memory, etc., and none worked. So, it seemed some module conflict. You just have to identify it deductively.