• Any time I set up a block that uses the ‘Inner Blocks’ field type, it displays fine in the public side using my template file, but in the admin area it shows “Error loading block: The response is not a valid JSON response” because the AJAX request returns a 403 error.

    I have tested this on multiple sites on multiple servers and I get the same result every time. Is there something that’s generally wrong, or is there something else that I should look for?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter catacaustic

    (@catacaustic)

    Just a note here for anyone that’s looking for this as I was…

    Genesis has decided to close the Github ticket without fixing this issue because (copied directly from their comments):

    This is definitely a problem, but to be honest, I’d rather we don’t fix it.

    There’s no clean way I see to do this, and we’re not focusing on this plugin anymore.

    So we are stuck with this issue, and it seems this plugin might not be getting the love that it should.

    If anyone has any suggestions for another plugin that can do the same thing and be supported into the future, it would be good to know.

    Plugin Contributor Ryan Kienstra

    (@ryankienstra)

    Hi @catacaustic,

    Sorry to not help you, that’s not my intent.

    If there was a clean way to fix this bug, I’d consider it.

    I definitely respect if this means you can’t keep using GCB, but that’s not what I hoped.

    Plugin Contributor Ryan Kienstra

    (@ryankienstra)

    Hi @catacaustic,

    …but in the admin area it shows “Error loading block: The response is not a valid JSON response” because the AJAX request returns a 403 error.

    Is this the case even if the Inner Blocks field has almost no content? Like if it only has a Paragraph block with a single word?

    That’d be a bigger bug than I thought, and I’m sorry for closing this ticket. The pull request linked above is different, it’s for if the inner blocks have a lot of data.

    If that’s the case, could you please copy-paste the block PHP template here (or template markup if not PHP), in addition to the browser and version, and what other block-related plugins are active?

    Thread Starter catacaustic

    (@catacaustic)

    I’m not going to abandon the plugin. At least not yet. ?? It still does everything that I need, and if the only issue is that I can’t render content in the editing area then I’ll live with that until something better comes along.

    I have done some testing as well. I’ve spun up a new installation (6.3) with two default themes (Twenty Nineteen and Twenty Twenty Three), and only this plugin installed (no other plugins).

    I set up a new block with only a single field set as ‘Inner blocks’. I tested this in both themes using a single ‘p’ block, as well as adding a columns block with ‘p’ blocks in each column.

    In both themes, everything rendered correctly, both in the editor and on the page. This was correct for both the single ‘p’ block and the columns block.

    Now this has me thinking that what I’m seeing has more chance of being a conflict with something else. With that in mind, I’m going to go back and do some more testing with what I’ve got on my dev site and see what I can find that’s changing this, or of it’s something that’s creating a conflict with the blocks plugin.

    I’ll report back when I know more.

    Plugin Contributor Ryan Kienstra

    (@ryankienstra)

    Thanks, @catacaustic! Let me know if you still see that bug after your testing, and let’s see if we can figure this out.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom blocks with ‘Inner Blocks’ won’t render in editor’ is closed to new replies.