Ajax error in Views

Created on 20 December 2023, about 1 year ago

I am using Drupal 10.1.7.

When I enable ajax on a view and then attempt to use an exposed filter on that view, I receive the following error message:

"Oops, something went wrong. Check your browser's developer console for more details."

Here's what the Chrome dev console says:

GET http://mywebsite.com/views/ajax?_wrapper_format=drupal_ajax&field_geofield_proximity%5Bvalue%5D=10&field_geofield_proximity%5Bsource_configuration%5D%5Borigin_address%5D=70065&view_name=locations&view_display_id=block_1&view_args=&view_path=%2Fnode%2F133&view_base_path=&view_dom_id=7b63b95d5bd080c48ebb5e496bb71764da684b0a723e8e277c17e414fd564d6a&pager_element=0&_drupal_ajax=1&ajax_page_state%5Btheme%5D=bootstrap_custom&ajax_page_state%5Btheme_token%5D=&ajax_page_state%5Blibraries%5D=admin_toolbar%2Ftoolbar.tree%2Cadmin_toolbar%2Ftoolbar.tree.hoverintent%2Cadmin_toolbar_tools%2Ftoolbar.icon%2Cblazy%2Fbio.ajax%2Cbootstrap_barrio%2Fform%2Cbootstrap_barrio%2Fglobal-styling%2Cbootstrap_barrio%2Flinks%2Cbootstrap_barrio%2Fmessages_white%2Cbootstrap_barrio%2Fnode%2Cbootstrap_barrio%2Ftabs%2Cbootstrap_custom%2Fbootstrap_cdn%2Cbootstrap_custom%2Fglobal-scripts%2Cbootstrap_custom%2Fglobal-styling%2Ccolorbox%2Fdefault%2Ccolorbox_inline%2Fcolorbox_inline%2Ccontextual%2Fdrupal.contextual-links%2Ccontextual%2Fdrupal.contextual-toolbar%2Ccore%2Fdrupal.active-link%2Cfitvids%2Ffitvids%2Cfitvids%2Finit%2Cgeofield_map%2Fgeofield_google_map%2Cgeofield_map%2Fgeojson%2Cgeofield_map%2Fintersection_observer%2Cgeofield_map%2Foverlappingmarkerspiderfier%2Cquickedit%2Fquickedit.inPlaceEditor.image%2Cshortcut%2Fdrupal.shortcut%2Csimple_popup_blocks%2Fsimple_popup_blocks%2Csystem%2Fbase%2Ctoolbar%2Ftoolbar%2Ctoolbar%2Ftoolbar.escapeAdmin%2Cuser%2Fdrupal.user.icons%2Cviews%2Fviews.ajax%2Cviews%2Fviews.module 406 (Not Acceptable)

Uncaught Drupal.AjaxError {message: '\nAn AJAX HTTP error occurred.\nHTTP Result Code: 40…server. This error was generated by Mod_Security.', name: 'AjaxError', stack: 'Error\n at http://mywebsite.com/core/mi…mywebsite.com/core/misc/ajax.js?v=10.1.7:1889:3'}

This issue does not occur on my localhost copy of this same website. I checked the php version etc between localhost and live server, and they are both on 8.1.x. This is also happening on at least one other website of mine, which is hosted on the same server.

How can I fix this issue?

🐛 Bug report
Status

Active

Version

10.1

Component
Ajax 

Last updated 1 day ago

Created by

🇺🇸United States hockey2112

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024