Open mrdarrengriffin opened 1 month ago
Hi @mrdarrengriffin,
Thanks for the detailed report! We've been able to replicate this on our end and will look at fixing this up in a future release.
Hi @mattgrshaw, out of curiosity, do you know what sort of timeline we're looking at? I just need to advice our team and content loaders as to when we can expect a fix. Thanks!
hi @mattgrshaw could you please update on the timelines for this? we're struggling with this issue on all projects with ACF right now.
block duplication is basically not working at all at ACF Version 6.3.5.
@maksymmamontov It's not at all a real workaround (especially for clients). Switch to block editor Code mode, copy the block markup manually, and paste it in in code mode, then switch back to editing mode to modify things as needed. That seemed to have worked on the site I tried it on.
@kmwalsh yes, this helps and as developers we usually do it this way but clients are sometimes confused why it's not working, just as with this bug (but it's not ACF-related): https://github.com/WordPress/gutenberg/issues/38731
I have run across this same issue or a similar one this week. I would add that copy/pasting blocks have the same results. I had to roll back the ACF Plugin to version 6.2.10. Versions 6.3 and up had the issue. Upon upgrade to 6.3 and up any duplicated block reverted to having these issues and would not render to the front end.
I believe I've also run into this issue and have had to roll back. This bug has caused major issues with data loss for a client of ours. It definitely merits a quick point release fix if possible.
Does anyone know if disabling validation sidesteps the issue? If so, it would be ideal if there was a way to do that in blocks registered using acf_register_block_type
, or even globally using a filter.
Per support, validation is always disabled on blocks registered using acf_register_block_type
, so that doesn't help. Just have to revert and wait for a fix.
@mattgrshaw, please can we get an update on this issue and when it will likely to be fixed? It's clear that many people are affected by this and is causing issues for their clients.
Thanks in advance
Hey folks, we're planning to fix this up as part of our next major release. We don't have an ETA on that just yet, but it is in development and we'll update this thread as we have more to share.
Describe the bug When duplicating a block with ACF fields in Gutenberg, there is an issue where if there are 2 or more of the same block on the page, the newly added block will not save correctly. Gutenberg does not correctly display the fact that the fields are empty which is causes a massive friction point for content loading.
To Reproduce Steps to reproduce the behavior. I did this on a fresh install of WordPress 6.1.1 via Local. I installed ACF Pro 6.3.4 with no other plugins active. I was using the Twenty Twenty Four theme.
Please note:
Expected behavior When duplicating blocks, the data associated with the original block should be retained. Upon saving and refreshing, the data should persist.
Screenshots or Video https://github.com/user-attachments/assets/e12d4494-e54a-458e-aaae-dd895f92cc17
Code Test field group: acf-export-2024-07-29.json
Example code used for testimonial block:
Version Information:
Additional context Add any other context about the problem here.