I am trying to:
Edit and save a view layout.
I expected to see:
Message: vies updates / alle sections saved
Instead, I got:
loading spinner but nothing happens
with error in console:
Uncaught ReferenceError: dataholder is not defined
at Object.self.save_section_content [as callback] (views_editor.js?ver=2.7.3:4034)
at HTMLDocument.<anonymous> (views_editor.js?ver=2.7.3:846)
at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:3)
at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:3)
at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:3)
at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:8)
at HTMLDocument.<anonymous> (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:3)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:2)
at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:2)
at a.fn.init.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-draggable,jquery-&load[]=ui-button,jquery-ui-position,jquery-ui-dialog,jquery-ui-tabs,suggest,underscore,shortcode,wp-util,wp-pointer,quicktags,wp-a11y,w&load[]=plink,backbone,jquery-effects-core,jquery-effects-size,jquery-effects-scale,jquery-ui-sortable,jquery-ui-tooltip,moxiejs,pluploa&load[]=d&ver=5.1:3)
So: javascript breaks and views layout is not saved.
Important: edit and save filters / view loop works correctly. We only encounter this error when saving the view layout portion of the view edit screen.