Anything I do in views that 开发者_运维技巧would normally use ajax to open up a new form to modify properties of that action is giving me an alert box of what looks like the code that should be loading with ajax:
There can be another source of this problem (if the previous comments didn't solve it):
the Theme developer module.
This is a really helpful module for theming and debugging, but when having it enabled, it can also produce weird AJAX error messages, similar to the one in the question when trying to set different parameters in Views field settings.
As the project's page suggests: "Enable it when needed, and disable it afterwards."
If you add a newer version of jQuery to your Drupal install it can create problems with AJAX and Views UI.
I have found myself in the exact same position before. I reverted back to the original jQuery version shipped with Drupal and everything was back to normal.
I've seen it happen too when the AJAX widget (for example, Panels) is trying to access an invalid, or no longer valid menu callback. I would search the menu 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 mentioned in the page_callback
column exists.
Changed permissions can also cause this problem.
Check what the access_callback
column says, and try debugging that path (/admin/build/views/ajax/add-item/community/default/field)
with different user roles to see what happens.
Just for completeness: I just figured out that another theme that might cause such a behaviour is the ThemeKey module (which - dispite of that- does a great work in what it is intended to...). At least disabling it at my site did the trick.
精彩评论