I seem to have an unusual AJAX error, since mine is a code 403 and not 200 or 500 like I see in the reports.
Tonight I updated my Drupal core to 7.14 and then tried to create a new view. Each time I try to select the content type I want to narrow it to, I get this error:
An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: /system/ajax
StatusText: Forbidden
ResponseText:
It won't let me even edit an existing view, when I try to add a footer to an existing view I get this error:
An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: /admin/structure/views/ajax/add-item/team_bios/page/footer
StatusText: Forbidden
ResponseText: [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"seven","theme_token":"BSgOCvbuWs6kUrnxh95AeeCowfBKEOiCW9DWdXMvu4Y"}},"merge":true},{"command":"viewsSetForm","output":"\u003Cform action=\u0022\/admin\/structure\/views\/ajax\/add-item\/team_bios\/page\/footer\u0022 method=\u0022post\u0022 id=\u0022views-ui-add-item-form\u0022 accept-charset=\u0022UTF-8\u0022\u003E\u003Cdiv\u003E\u003Cdiv class=\u0022views-override clearfix container-inline\u0022\u003E\u003Cdiv class=\u0022form-item form-type-select form-item-override-dropdown\u0022\u003E\n \u003Clabel for=\u0022edit-override-dropdown\u0022\u003EFor \u003C\/label\u003E\n \u003Cselect id=\u0022edit-override-dropdown\u0022 name=\u0022override[dropdown]\u0022 class=\u0022form-select\u0022\u003E\u003Coption value=\u0022default\u0022\u003EAll displays\u003C\/option\u003E\u003Coption value=\u0022page\u0022\u003EThis page (override)\u003C\/option\u003E\u003C\/select\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cdiv class=\u0022scroll form-wrapper\u0022 id=\u0022edit-options\u0022\u003E\u003Cdiv class=\u0022container-inline form-wrapper\u0022 id=\u0022views-filterable-options-controls\u0022\u003E\u003Cdiv class=\u0022form-item form-type-textfield form-item-options-search\u0022\u003E\n \u003Clabel for=\u0022edit-options-search\u0022\u003ESearch \u003C\/label\u003E\n \u003Cinput type=\u0022text\u0022 id=\u0022edit-options-search\u0022 name=\u0022options_search\u0022 value=\u0022\u0022 size=\u002260\u0022 maxlength=\u0022128\u0022 class=\u0022form-text\u0022 \/\u003E\n\u003C\/div\u003E\n\u003Cdiv class=\u0022form-item form-type-select form-item-group\u0022\u003E\n \u003Clabel for=\u0022edit-group\u0022\u003EFilter \u003C\/label\u003E\n \u003Cselect class=\u0022ctools-master-dependent form-select\u0022 id=\u0022edit-group\u0022 name=\u0022group\u0022\u003E\u003Coption value=\u0022all\u0022\u003E- All -\u003C\/option\u003E\u003Coption value=\u0022global\u0022\u003EGlobal\u003C\/option\u003E\u003C\/select\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cdiv class=\u0022views-radio-box form-checkboxes views-filterable-options\u0022\u003E\u003Cdiv class=\u0022ctools-dependent-all ctools-dependent-global\u0022\u003E\u003Cdiv class=\u0027even filterable-option\u0027\u003E\u003Cdiv class=\u0022form-item form-type-checkbox form-item-name-views.result\u0022\u003E\n \u003Cinput type=\u0022checkbox\u0022 id=\u0022edit-name-viewsresult\u0022 name=\u0022name[views.result]\u0022 value=\u0022views.result\u0022 class=\u0022form-checkbox\u0022 \/\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-name-viewsresult\u0022\u003EGlobal: Result summary \u003C\/label\u003E\n\n\u003Cdiv class=\u0022description\u0022\u003EShows result summary, for example the items per page.\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cdiv class=\u0027odd filterable-option\u0027\u003E\u003Cdiv class=\u0022form-item form-type-checkbox form-item-name-views.area\u0022\u003E\n \u003Cinput type=\u0022checkbox\u0022 id=\u0022edit-name-viewsarea\u0022 name=\u0022name[views.area]\u0022 value=\u0022views.area\u0022 class=\u0022form-checkbox\u0022 \/\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-name-viewsarea\u0022\u003EGlobal: Text area \u003C\/label\u003E\n\n\u003Cdiv class=\u0022description\u0022\u003EProvide markup text for the area.\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cdiv class=\u0027even filterable-option\u0027\u003E\u003Cdiv class=\u0022form-item form-type-checkbox form-item-name-views.view\u0022\u003E\n \u003Cinput type=\u0022checkbox\u0022 id=\u0022edit-name-viewsview\u0022 name=\u0022name[views.view]\u0022 value=\u0022views.view\u0022 class=\u0022form-checkbox\u0022 \/\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-name-viewsview\u0022\u003EGlobal: View area \u003C\/label\u003E\n\n\u003Cdiv class=\u0022description\u0022\u003EInsert a view inside an area.\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003C\/div\u003E\u003C\/div\u003E\u003C\/div\u003E\u003Cdiv class=\u0022container-inline views-add-form-selected\u0022\u003E\u003Cdiv id=\u0022edit-selected\u0022 class=\u0022form-item form-type-item\u0022\u003E\n \u003Clabel for=\u0022edit-selected\u0022\u003ESelected: \u003C\/label\u003E\n \u003Cdiv class=\u0022views-selected-options\u0022\u003E\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cdiv class=\u0022clearfix\u0022\u003E\u003Cdiv class=\u0022form-buttons\u0022\u003E\u003Cinput type=\u0022submit\u0022 id=\u0022edit-submit\u0022 name=\u0022op\u0022 value=\u0022Add and configure footer\u0022 class=\u0022form-submit\u0022 \/\u003E\u003Cinput type=\u0022submit\u0022 id=\u0022edit-cancel\u0022 name=\u0022op\u0022 value=\u0022Cancel\u0022 class=\u0022form-submit\u0022 \/\u003E\u003C\/div\u003E\u003C\/div\u003E\u003Cinput type=\u0022hidden\u0022 name=\u0022form_build_id\u0022 value=\u0022form-MmZGCGA9ySB8vi3GLOfJ8qcwZQjr5BVhdZFUfaCGPzY\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_token\u0022 value=\u0022XQzZvG313hETO7tnqa302e1BuwET-0M_HVADgtss9sY\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_id\u0022 value=\u0022views_ui_add_item_form\u0022 \/\u003E\n\u003C\/div\u003E\u003C\/form\u003E","title":"Add footer","url":"http:\/\/ghostbusterschicago.knitchick.info\/admin\/structure\/views\/ajax\/add-item\/team_bios\/page\/footer"},{"command":"viewsHilite","selector":".pageadd-item"}]
Any suggestions for how to fix this??
Comments
Comment #1
dawehnerInteresting, maybe some menu rebuilding failed, alternative maybe this is caused by #1484352: Illegal choice *relationship* in Flag element causes Views contextual filters to fail but with an error message which says simply nothing.
Comment #2
KnitChick1979 CreditAttribution: KnitChick1979 commentedI'm not quite sure exactly what I did, but I'm no longer getting the error. I tried doing the Drupal Core update again (deleted the files & re-uploaded them & ran update.php), then I cleared all caches twice, and it suddenly worked! Phew! I was ready to trash the whole thing, database and all, and start all over.
So I guess I'll close this. :)
Comment #3
togbonna CreditAttribution: togbonna commentedHave to activate this.
Am getting exactly the same error described here. I tried #2 with no success.
Could this be a server file permission issue?
Any help would be appreciated.
Comment #4
Alper Gucer CreditAttribution: Alper Gucer commentedI get the same error after upgrading to 7.15. Could somebody please help?
Comment #5
leanne9 CreditAttribution: leanne9 commentedI am getting this error as well within the Manage Display area of some content types when I click on the gear to customize a field-- anything from image size to tab settings.
Comment #6
swentel CreditAttribution: swentel commentedWhy would you move this to Display Suite suddenly, seriously, don't do that.
Comment #7
leanne9 CreditAttribution: leanne9 commentedI'm so sorry, I didn't realize it did that (obviously new to this)... changed it back to Views.
Comment #8
3p CreditAttribution: 3p commentedhi
I also got this problem
the modules jquery update 7.x-2.3 conflict with views(ajax)
Good luck
Comment #9
kamenrs CreditAttribution: kamenrs commentedI have exactly the same problem.
I have a Commerce website and neither Display Suite nor Inline Entity Form are able to complete an AJAX request. I get the same error:
I have posted an issue here:
Comment #10
Ali yah CreditAttribution: Ali yah commentedI tried update.php and it's working fine and I dont know why..
Comment #11
markhalliwellClosing since this is a jQuery version/API deprecation issue and can resolved in the 7.x-3.x branch by either:
Comment #12
32i CreditAttribution: 32i at Drupal Ukraine Community commentedThere also could be the case with Apache Mod_Security that was preventing Ajax calls from working. I've got it installed on the custom server, so had to disable it. Perhaps that'll help someone if everything else isn't helping.