You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a page hast one or more genesis-custom-blocks (gcb) and one of them has an innerBlock with too much content, all gcb will be shown as offline (preview not shown). The reason for it is, that the content of the innerBlock is added as query parameter (inner_blocks) to the query URL. In some cases, this query parameter gets too long.
Steps to reproduce
Create a gcb with the field type innerBlock
As preview you can add any Text or just add {{ $inner_block }}
Add this gcb to the page and add a lot of content to it
Now the preview is not showing up. Instead a php-warning is shown
If you add some other gcb, then save and reload the page -> all previews of gcb failed
when you edit a gcp (not the gcb from section 1), the preview is now shown for this gcb
Expected behavior
the preview for all gcb is showing up correctly
for gcb with an innerBlock in the preview is shown the content or give a hint that it is only visible in edit-mode (if too much content)
My suggestion is to limit the length of the query parameter inner_block and if it is reached, add a hint that the content is not visible in the preview
Suspected cause (optional)
some server has restrictions of url length or query length
Versions
WordPress version: 6.2.2
Genesis Custom Blocks version: v1.5.1
Browser: Google Chrome
The text was updated successfully, but these errors were encountered:
I understand, I haven't found a clever solution myself that works in every case. However, I have a suggestion for a solution. With the help of a checkbox in the settings of the inner block, you could define whether the content should be displayed in the preview or whether a note should be displayed. It would be even better if, instead of the checkbox, you could define a maximum content length that is displayed in the preview.
Bug summary
If a page hast one or more genesis-custom-blocks (gcb) and one of them has an innerBlock with too much content, all gcb will be shown as offline (preview not shown). The reason for it is, that the content of the innerBlock is added as query parameter (inner_blocks) to the query URL. In some cases, this query parameter gets too long.
Steps to reproduce
Expected behavior
Actual behavior
JS Console
Additional information
Allow previewing
InnerBlocks
in the block editor #114Suspected cause (optional)
Versions
The text was updated successfully, but these errors were encountered: