Fresh install of Drupal 7 and installing views through drush. Whenever I try to click on any link on editing a view panel, i.e. editing Human Name, a javascript alert comes up with:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/human_name/static_page
StatusText: OK
ResponseText: [json response]

No errors are reported on the web server logs, default OSX Apache install with Apple provided PHP 5.3. Only installed modules except from core other than Views modules and supporting modules are devel and theme-devel.

From a first glance it looks as though the admin panel is not properly handling the AJAX JSON response, the code is 200 but the handling function still seems to think it's an error.

CommentFileSizeAuthor
#5 out.txt4.99 KBrory_o

Comments

rory_o’s picture

A bit of additional information:
Same error on Firefox3, 4, Chrome 7 and Safari 5, both on Windows and OSX. IE8 and 9 also have this error

Installing Views using XAMPP for Windows works fine, so it's something about how the stock Apple provided Apache is configured on OSX returning JSON values that the tools in Views doesn't know how to parse.

rory_o’s picture

Even more information: Installing MAMP on OSX to see if it is an issue strictly with the Apple configured Apache gives the same issue. So far only XAMPP on Windows works. I don't have anything Linux to work with.

rory_o’s picture

Aha I figured it out, I'm not so sure it has to do with Views now.
Upon inspecting the JSON the themer_devel module inserts a lot of stuff into JSON responses, in particular some unicode-escaped HTML. When I disable themer_devel Views works fine. I'm inclined to think this is an issue with themer_devel now.

merlinofchaos’s picture

Oh that is very interesting. Can you paste me an example of this doctored output? Maybe we can do something about it.

rory_o’s picture

StatusFileSize
new4.99 KB

Attached so it's not a gigantic JSON dump. theme_devel looks to dump it into the thmrStrings object, which has a bunch of unicode HTML in it. Theme devel is quite useful but not so much a fan on how it seems to propagate everywhere.

Actually also realized theme_devel also attaches its spans to output: as well, perhaps that can cause a problem with the Views parser.

juliangb’s picture

I'm also seeing this bug. This is the full error that I get. This is without theme_devel on the site.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/config-item/[view-name]/page_1/field/entity_id_1
StatusText: OK
ResponseText: 
Fatal error:  require_once() [function.require]: Failed opening required '/[root]/sites/[domain]/modules/ctools/includes/fields.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /[root]/sites/[domain]/modules/ctools/ctools.module on line 111
dawehner’s picture

You have to update to a recent version of ctools. For example alpha2 to be able to use views.

juliangb’s picture

Updating solves it. Thanks.

merlinofchaos’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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