While adding fields in a view, I got the Json values after save the field configuration in the overlay screen. I need to go back and reload the page to recover the form state.

I had this issue in the Spark distribution so I made a clean Drupal installation. Everything was working ok until Panels module was installed, so I think this might be an incompatibilty with Views.

This is the list of enabled modules, I will be making some tests to see if I can find the specific error.

Administration views (admin_views) 7.x-1.2
Autocomplete Deluxe (autocomplete_deluxe) 7.x-2.0-beta3
Automatic Nodetitles (auto_nodetitle) 7.x-1.0
Backup and Migrate (backup_migrate) 7.x-2.8
Backup and Migrate Files (backup_migrate_files) 7.x-1.x-dev
Background Image (bg_image) 7.x-1.3
Background Image Context (bg_image_context) 7.x-1.3
Background Image UI (bg_image_ui) 7.x-1.3
Block (block) 7.26
Block Class (block_class) 7.x-2.1
Breakpoints (breakpoints) 7.x-1.1
Bundle copy (bundle_copy) 7.x-1.1
Color (color) 7.26
Context (context) 7.x-3.1
Contextual links (contextual) 7.26
Context layouts (context_layouts) 7.x-3.1
Context UI (context_ui) 7.x-3.1
Chaos tools (ctools) 7.x-1.3
Dashboard (dashboard) 7.26
Date (date) 7.x-2.7
Date API (date_api) 7.x-2.7
Date Popup (date_popup) 7.x-2.7
Database logging (dblog) 7.26
Drag & Drop Upload (dragndrop_upload) 7.x-1.x-dev
Drag & Drop Upload Element (dragndrop_upload_element) 7.x-1.x-dev
Drag & Drop Upload: Examples (dragndrop_upload_example) 7.x-1.x-dev
Drag & Drop Upload: File field widget (dragndrop_upload_file) 7.x-1.x-dev
Drag & Drop Upload: Image field widget (dragndrop_upload_image) 7.x-1.x-dev
Drag & Drop Upload: Multiupload support (dragndrop_upload_multi) 7.x-1.x-dev
Enabled modules (enabled_modules) 7.x-1.0-beta3
Entity API (entity) 7.x-1.3
Entity Reference (entityreference) 7.x-1.1
Field (field) 7.26
Field SQL storage (field_sql_storage) 7.26
Field UI (field_ui) 7.26
File (file) 7.26
Filter (filter) 7.26
Help (help) 7.26
Image (image) 7.26
IMCE (imce) 7.x-1.8
IMCE Wysiwyg API bridge (imce_wysiwyg) 7.x-1.0
jQuery Update (jquery_update) 7.x-2.3
Libraries (libraries) 7.x-2.1
List (list) 7.26
Masquerade (masquerade) 7.x-1.0-rc5
Menu (menu) 7.26
Module filter (module_filter) 7.x-2.0-alpha2
Multiupload Filefield Widget (multiupload_filefield_widget) 7.x-1.13
Multiupload Imagefield Widget (multiupload_imagefield_widget) 7.x-1.3
Mobile Friendly Navigation Toolbar (navbar) 7.x-1.4
Node (node) 7.26
Number (number) 7.26
Options (options) 7.26
Page manager (page_manager) 7.x-1.3
Panels (panels) 7.x-3.3
Panels In-Place Editor (panels_ipe) 7.x-3.3
Path (path) 7.26
Pathauto (pathauto) 7.x-1.2
RDF (rdf) 7.26
Search (search) 7.26
Shortcut (shortcut) 7.26
Standard (standard) 7.26
System (system) 7.26
Taxonomy (taxonomy) 7.26
Taxonomy CSV import/export (taxonomy_csv) 7.x-5.10
Text (text) 7.26
Token (token) 7.x-1.5
Transliteration (transliteration) 7.x-3.1
Twitter Field (twitterfield) 7.x-1.0-rc1
Update manager (update) 7.26
User (user) 7.26
Views (views) 7.x-3.7
Views Bulk Operations (views_bulk_operations) 7.x-3.2
Views System (views_system) 7.x-3.2
Views UI (views_ui) 7.x-3.7
Webform (webform) 7.x-3.19
Wysiwyg (wysiwyg) 7.x-2.2
YouTube Field (youtube) 7.x-1.1

CommentFileSizeAuthor
#9 viewsajax.gif52.3 KBledjerdemain
#2 views_error.png270.3 KBresonance
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

resonance’s picture

Issue summary: View changes
resonance’s picture

FileSize
270.3 KB
Bram Linssen’s picture

I had exactly the same problem.
In my case navbar was the problem

see https://drupal.org/node/2263205

Applying the navbar patch solved the issue for me.

jstoller’s picture

Title: Views module return jSon values when adding fields » JSON error on ajax form submissions in Views UI
Priority: Normal » Major

I'm having the same problem, but I'm not using Panels or the Navbar module. And it's not just when adding fields. It happens with every ajax form submission in the Views UI, when changing any setting. I've experienced it changing the view format, sort criteria, machine name, and pager settings, as well as fields.

jstoller’s picture

This appears to be a problem with jQuery Update. Setting the jQuery version for administration pages to version 1.7 seems to be a workaround.

Bram Linssen’s picture

Using a newer version of jQuery has been causing this issue within views already for a long time. I should have mentioned that in my post.

Now navbar causes it as well, I know it's not only when adding fields see https://drupal.org/node/2263205.

Luckily there is a patch already.

dawehner’s picture

Status: Active » Fixed

It is always the same, dirty litte jquery update bastard.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

ledjerdemain’s picture

FileSize
52.3 KB

I'm sorry to re-open this issue. But the problem seems to continue for me despite configuring jquery update to use 1.7. I'm also using panels. afer I submit the view it throws this screen