I’m using WordPress 5.8.1 and ACF PRO 5.10.2.
I’m facing an issue while trying to save changes in custom block which is placed in widgets. The blue button in corner is inactive after I make any changes to the content of the fields in this block.
If I use original Gutenberg block (not a custom one) everything works fine. It works fine also when the mode of this block is not set to edit. After switching from visual to edit mode, then it listens for changes and the Update button is active.
Same issue, but the problem appears to be larger than just not having the “Update” button be clickable. If I mess around in a core widget block, yes I can have the “Update” button be clickable again, but it doesn’t actually SAVE any of my changes in my ACF block (but the changes to the core block are updated).
I have the exact same problem. It looks like this is a bigger bug then just for one website. Is this being worked on?
To clarify, not only the edits are not saved, it also seems that saved fields are not registered itself or got lost after a widget save.
Added: It seems that the following notice pops-up on ACF Pro 5.11.4:
Notice: acf_get_value werd <strong>verkeerd</strong> aangeroepen. <strong>Advanced Custom Fields PRO</strong> - We've detected one or more calls to retrieve ACF field values before ACF has been initialized. This is not supported and can result in malformed or missing data. <a href="https://www.advancedcustomfields.com/resources/acf-field-functions/" target="_blank">Learn how to fix this</a>.
Maybe this has something to do with the widgets now rendered in a “Deprecated widget” container?
I’m seeing the same issue on multiple sites/environments as well, a workaround that actually worked for me was going to Appearance → Customize → Widgets instead of the dedicated Appearance → Widgets screen. It’s not ideal since the Widgets sidebar is so narrow in the Customizer, but at least it’s possible to save ACF block changes there!
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!