You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Button "Add image" of image field isn't working when added on an option page
To Reproduce
Steps to reproduce the behavior:
Create an option page "option"
Create an acf field group with an image field inside
Associate the field group to the option page
Go to the option page and click on "Add image" button
Console is throwing an error :
Uncaught TypeError: Cannot read properties of undefined (reading 'align')
at n.resetDisplays (media-views.min.js?ver=6.6.2:2:11778)
at n.initialize (media-views.min.js?ver=6.6.2:2:11016)
at h.Model (backbone.min.js?ver=1.5.0:2:4722)
at n.constructor (media-views.min.js?ver=6.6.2:2:17303)
at new n (backbone.min.js?ver=1.5.0:2:23777)
at n.addFrameStates (acf-input.min.js?ver=6.3.6:1:83108)
at n.initialize (acf-input.min.js?ver=6.3.6:1:82354)
at n.e (acf.min.js?ver=6.3.6:1:3257)
at acf.Model (acf.min.js?ver=6.3.6:1:3391)
at n [as constructor] (acf.min.js?ver=6.3.6:1:6558)
Note : I have this behavior on multiple of my websites, but not those in php 7.
Note : The button work wells when the image field is associated to a page, or a post.
Expected behavior
I should be able tu use image field on options pages.
Describe the bug
Button "Add image" of image field isn't working when added on an option page
To Reproduce
Steps to reproduce the behavior:
Note : I have this behavior on multiple of my websites, but not those in php 7.
Note : The button work wells when the image field is associated to a page, or a post.
Expected behavior
I should be able tu use image field on options pages.
Screenshots or Video
Code
acf-export-informations-fields.json
acf-export-option-page.json
Version Information:
Additional context
I got just 2 other plugins activated :
I use with composer :
The text was updated successfully, but these errors were encountered: