TypeError: Cannot read properties of undefined (reading ‘mode’)
-
There seems to be an incompatibility issue with this plugin and older versions of Advanced Custom Fields. Attempting to add a file to the File field type gives the following console error:
Uncaught TypeError: Cannot read properties of undefined (reading ‘mode’)
at t.more (mediaViews.jsx:126:83)
at n.prepare (media-views.min.js?ver=5.5.11:2:75243)
at n.render (wp-backbone.min.js?ver=5.5.11:2:2795)
at wp.Backbone.Subviews. (wp-backbone.min.js?ver=5.5.11:2:2140)
at underscore.min.js?ver=1.8.3:2:630
at v.each.v.forEach (underscore.min.js?ver=1.8.3:2:1685)
at wp.Backbone.Subviews._attach (wp-backbone.min.js?ver=5.5.11:2:2101)
at wp.Backbone.Subviews.set (wp-backbone.min.js?ver=5.5.11:2:884)
at wp.Backbone.Subviews.add (wp-backbone.min.js?ver=5.5.11:2:1001)
at n.createAttachments (media-views.min.js?ver=5.5.11:2:86300)WordPress: 5.5.11
PHP: 7.4.30
ACF: 5.3.10
RML (Free): 4.19.2
No other plugins are activated.This error goes away when I upgrade ACF to the newest version.
- The topic ‘TypeError: Cannot read properties of undefined (reading ‘mode’)’ is closed to new replies.