Drupal Views - Ajax Error Alert Box From Hell

Everything I do in the views that usually use ajax to open a new form to change the properties of this action gives me a warning window, similar to the code that should be loaded using ajax:

enter image description here

+4
source share
4 answers

If you add a newer version of jQuery to your Drupal installation, this can create problems with AJAX and UI views.

I was in the same position before. I returned to the original jQuery version shipped with Drupal, and everything was fine.

+7
source

There may be another source of this problem (if previous comments have not resolved):
Theme developer .

This is a really useful module for topics and debugging, but when it is turned on, it can also create strange AJAX error messages similar to those given when trying to set different parameters in the Views field settings.

As the project page shows: "Enable it when necessary, and disable it later."

+8
source

I saw how this happens when an AJAX widget (like Panels) tries to access an invalid or more invalid menu callback. I would search the menu for a router for things like:

select * from menu_router where path like '%ajax%'; and select * from menu_router where path like '%ajax/add%'; 

Then make sure that the function specified in the page_callback column exists.

Changed permissions can also cause this problem. Check what the access_callback column access_callback , and try debugging this path (/admin/build/views/ajax/add-item/community/default/field) with different user roles to see what happens.

0
source

Just for the sake of completeness: I just found out that the other topic that can cause this behavior is ThemeKey module (which, for example, does this - great job in that it is intended ....). At the very least, disabling it on my site did the trick.

0
source

Source: https://habr.com/ru/post/1343231/


All Articles