Exported blocks not visible in WordPress (solved)

@iHuman Okay, I seem to be able to reproduce your issue. Here is a video of what I did to reproduce it and the troubleshooting steps I took.

@matjaz This does appear to be a real bug.

Steps to reproduce:

  1. Export theme with a block.
  2. Delete the block you exported
  3. Recreate the block you exported with the same name
  4. Note that the newly recreated block is not exported
  5. Rename the recreated block
  6. Note that the previously deleted, recreated, and renamed block is still not exported.

I tried all the usual stuff… clearing cache, regenerating functions.php, clearing and recreating the export folder. Nothing seemed to make the theme exporter pick up on that block.

Other things I’ve tried/checked/noted

  • The “bad” block now shows up as part of the template even though it’s marked as a block in PG.
  • I can successfully create NEW blocks after making a “bad” block, as long as I don’t re-use any old unique Block IDs.
  • Renaming the cms-block-title has no effect
  • Renaming the WordPress Block Title has no effect
  • Closing & reopening Pinegrow has no effect
  • Deleting my Pinegrow application support folder has no effect

Workaround:
Be careful not to re-use any block IDs, regardless of whether or not they have been deleted. If you are experiencing this problem, delete the offending blocks and sections and re-create them with a unique block ID.


iHuman Pinegrow Test - Part 2 - Watch Video

And here is a repository with my test project

2 Likes