I can’t open a ticket – I’m getting an error. So I’m resorting to forums.
I have a problem with a site that is using ACF Gutenberg Blocks and has started showing “Your site doesn’t include support for the “acf/my-block-name” block. You can leave the block intact or remove it entirely.”
HOWEVER, I can add new blocks of this type. These appear fine. It just won’t display existing ones.
I’m using ACF Pro v5.9.4 on WP v5.5.3.
I’m using acf_add_local_field_group() to load the fields from JSON files. (This was set up by a previous developer on the site).
The block contains a repeater field. I don’t know if this is relevant.
Have you seen this before? Do you know what’s wrong or how to fix it?
Hi all 👋. Thank you for your patience whilst we tested and debugged the issue.
We have successfully identified this issue as a regression in ACF PRO 5.9.4 which caused ACF Blocks to be registered *after* the WP editor instance was initialized. This explains why new blocks could be added whilst existing blocks did not appear on page load.
Whilst we continue testing of the fix, please find an updated JS file to copy and paste into the
pro/assets/js/ folder within ACF PRO. This file contains the related patch and should solve the problem 100% – please comment bellow with your results. The quicker we can get positive feedback from you, the quicker we can release an update 🙌.
Dropbox link will be available for 7 days: https://www.dropbox.com/t/gTRoawP1TRGUgXT3
I experienced the same error on multiple sites (ACF pro v5.9.4 in combination with WP core v5.5.3 – (update to WordPress v5.6 fixes it)).
I’ve just tested your fix (on local hosted sites) by downloading the acf-pro-blocks.min.js file and copy/pasting this in my
pro/assets/js/ folder. However this doesn’t seem to have fixed the issue (tried this in 2 different websites so far).
Hopefully Ross and others can test the fix as well.
I tried the following and nothing seems to resolve it:
– hard refresh
– testing in new incognito/private session (Chrome, my default browser)
– testing in different/unique browser (Firefox)
But maybe I’m overlooking something so I’m hoping the other users can test your fix as well.
@mrrrlou Thanks for the reply. Would it be possible to gain access to a staging version of your site for us to debug? Our local tests and showing this patch works, so I’m very interested in diagnosing the issue in your environment.
One thing that did come to mind is perhaps you had copied the updated JS file into the
/assets/js/ folder instead of the
/pro/assets/js/ folder? Can you confirm that WP is definitely loading in this updated file?
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!
© 2022 Advanced Custom Fields.