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.
Comments
Comment #1
rory_o commentedA 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.
Comment #2
rory_o commentedEven 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.
Comment #3
rory_o commentedAha 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.
Comment #4
merlinofchaos commentedOh that is very interesting. Can you paste me an example of this doctored output? Maybe we can do something about it.
Comment #5
rory_o commentedAttached 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.
Comment #6
juliangb commentedI'm also seeing this bug. This is the full error that I get. This is without theme_devel on the site.
Comment #7
dawehnerYou have to update to a recent version of ctools. For example alpha2 to be able to use views.
Comment #8
juliangb commentedUpdating solves it. Thanks.
Comment #9
merlinofchaos commented