Inner Blocks field type bug
-
Hi,
We have noticed that when creating custom components with a field type of inner block and the fields inside the inner-block are fairly complicated and have a lot of properties then the editor fails to render the block correctly. To be clear it still works but the visual editor is unable the first view of the component. This is because the api call to fetch the JSON for the content ends up being too long and produces a 414 http response.
This is a major problem as we cannot abstract away the complexity of the components from our content authoring team.
Here is a sample:
/wp-json/wp/v2/block-renderer/genesis-custom-blocks/campaign-content?context=edit&post_id=9485&inner_blocks=%253C!--%2520wp%253Aheading%2520%257B%2522className%2522%253A%2522campaign-title%2522%257D%2520--%253E%250A%253Ch2%2520class%253D%2522campaign-title%2522%253EA%2520rewarding%2520offer%2520for%2520PwC%2520Australia!%253C%252Fh2%253E%250A%253C!--%2520%252Fwp%253Aheading%2520--%253E%250A%250A%253C!--%2520wp%253Aspacer%2520%257B%2522height%2522%253A%252224px%2522%257D%2520--%253E%250A%253Cdiv%2520style%253D%2522height%253A24px%2522%2520aria-hidden%253D%2522true%2522%2520class%253D%2522wp-block-spacer%2522%253E%253C%252Fdiv%253E%250A%253C!--%2520%252Fwp%253Aspacer%2520--%253E%250A%250A%253C!--%2520wp%253Agroup%2520%257B%2522className%2522%253A%2522compact%2522%257D%2520--%253E%250A%253Cdiv%2520class%253D%2522wp-block-group%2520compact%2522%253E%253C!--%2520wp%253Agroup%2520--%253E%250A%253Cdiv%2520class%253D%2522wp-block-group%2522%253E%253C!--%2520wp%253Aacf%252Faddress-selector%2520%257B%2522id%2522%253A%2522block_62a9460d3851e%2522%252C%2522name%2522%253A%2522acf%252Faddress-selector%2522%252C%2522align%2522%253A%2522%2522%252C%2522mode%2522%253A%2522auto%2522%257D%2520%252F--%253E%253C%252Fdiv%253E%250A%253C!--%2520%252Fwp%253Agroup%2520--%253E%253C%252Fdiv%253E%250A%253C!--%2520%252Fwp%253Agroup%2520--%253E%250A%250A%253C!--%2520wp%253Aspacer%2520%257B%2522height%2522%253A%252224px%2522%257D%2520--%253E%250A%253Cdiv%2520style%253D%2522height%253A24px%2522%2520aria-hidden%253D%2522true%2522%2520class%253D%2522wp-block-spacer%2522%253E%253C%252Fdiv%253E%250A%253C!--%2520%252Fwp%253Aspacer%2520--%253E%250A%250A%253C!--%2520wp%253Aparagraph%2520--%253E%250A%253Cp%253ESign%2520up%2520to%2520Origin%2520PwC%2520Employee%2520Go%2520to%2520get%2520a%2520special%2520energy%2520offer%2520with%2520great%252C%2520fixed%2520energy%2520rates!%2520Plus%2520you%27re%2520eligible%2520for%2520more%2520great%2520offers%252C%2520including%2520free%2520items%2520when%2520you%2520sign%2520up%2520to%2520Origin%2520Spike%255E%2520and%2520an%2520extra%2520%2524500%2520off%2520a%2520solar%2520and%2520battery%2520bundle%2520with%2520Origin%2520Loop*.%253Cbr%253E%253C%252Fp%253E%250A%253C!--%2520%252Fwp%253Aparagraph%2520--%253E%250A%250A%253C!--%2520wp%253Aparagraph%2520--%253E%250A%253Cp%253E%253Csub%253ET%2526amp%253BCs%2520and%2520eligibility%2520criteria%2520apply%2520for%2520Origin%2520Spike%2520and%2520Origin%2520Loop.%253C%252Fsub%253E%253Ca%2520id%253D%2522_msocom_1%2522%253E%253C%252Fa%253E%253C%252Fp%253E%250A%253C!--%2520%252Fwp%253Aparagraph%2520--%253E%250A%250A%253C!--%2520wp%253Aacf%252Fplan-selector%2520%257B%2522id%2522%253A%2522block_62be82a13c229%2522%252C%2522name%2522%253A%2522acf%252Fplan-selector%2522%252C%2522data%2522%253A%257B%2522planName%2522%253A%2522Origin%2520Go%2522%252C%2522_planName%2522%253A%2522field_6296e803a39db%2522%252C%2522campaignCodes_ACT_resi_electricity%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_resi_electricity%2522%253A%2522field_6296f3b41a679%2522%252C%2522campaignCodes_ACT_resi_gas%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_resi_gas%2522%253A%2522field_6296f3b41a67b%2522%252C%2522campaignCodes_ACT_resi_dual%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_resi_dual%2522%253A%2522field_6296f3b41a67d%2522%252C%2522campaignCodes_ACT_resi_solar%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_resi_solar%2522%253A%2522field_6296f3b41a67f%2522%252C%2522campaignCodes_ACT_resi%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_resi%2522%253A%2522field_6296f3b41a678%2522%252C%2522campaignCodes_ACT_business_electricity%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_business_electricity%2522%253A%2522field_6296f3b41a682%2522%252C%2522campaignCodes_ACT_business_gas%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_business_gas%2522%253A%2522field_6296f3b41a684%2522%252C%2522campaignCodes_ACT_business_dual%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_business_dual%2522%253A%2522field_6296f3b41a686%2522%252C%2522campaignCodes_ACT_business_solar%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_business_solar%2522%253A%2522field_6296f3b41a688%2522%252C%2522campaignCodes_ACT_business%2522%253A%2522%2522%252C%2522_campaignCodes_ACT_business%2522%253A%2522field_6296f3b41a681%2522%252C%2522campaignCodes_ACT%2522%253A%2522%2522%252C%2522_campaignCodes_ACT%2522%253A%2522field_6296f3b41a677%2522%252C%2522campaignCodes_VIC_resi_electricity%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_resi_electricity%2522%253A%2522field_6296e83ca3a96%2522%252C%2522campaignCodes_VIC_resi_gas%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_resi_gas%2522%253A%2522field_6296e9da29058%2522%252C%2522campaignCodes_VIC_resi_dual%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_resi_dual%2522%253A%2522field_6296e9e62905a%2522%252C%2522campaignCodes_VIC_resi_solar%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_resi_solar%2522%253A%2522field_6296e9f12905c%2522%252C%2522campaignCodes_VIC_resi%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_resi%2522%253A%2522field_6296e803afcaf%2522%252C%2522campaignCodes_VIC_business_electricity%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_business_electricity%2522%253A%2522field_6296f2cba017b%2522%252C%2522campaignCodes_VIC_business_gas%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_business_gas%2522%253A%2522field_6296f2cba017d%2522%252C%2522campaignCodes_VIC_business_dual%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_business_dual%2522%253A%2522field_6296f2cba017f%2522%252C%2522campaignCodes_VIC_business_solar%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_business_solar%2522%253A%2522field_6296f2cba0181%2522%252C%2522campaignCodes_VIC_business%2522%253A%2522%2522%252C%2522_campaignCodes_VIC_business%2522%253A%2522field_6296f2cba017a%2522%252C%2522campaignCodes_VIC%2522%253A%2522%2522%252C%2522_campaignCodes_VIC%2522%253A%2522field_6296e803ac568%2522%252C%2522campaignCodes_NSW_resi_electricity%2522%253A%2522%2522%252C%2522_campaignCodes_NSW_resi_electricity%2522%253A%2522field_6296f3d61a68c%2522%252C%2522campaignCodes_NSW_resi_gas%2522%253A%2522%2522%252C%2522_campaignCodes_NSW_resi_gas%2522%253A%2522field_6296f3d61a68e%2522%252C%2522campaignCodes_NSW_resi_dual%2522%253A%2522%2522%252C%2522_campaignCodes_NSW_resi_dual%2522%253A%2522field_6296f3d61a690%2522%252C%2522campaignCodes_NSW_resi_solar%2522%253A%2522%2522%252C%2522_campaignCodes_NSW_resi_solar%2522%253A%2522field_6296f3d61a692%2522%252C%2522campaignCodes_NSW_resi%2522%253A%2522%2522%252C%2522_campaignCodes_NSW_resi%2522%253A%2522field_6296f3d61a68b%2522%252C%2522campaignCodes_NSW_business_electricity%2522%253A%2522%2522%252C%2522_campaignCodes_NSW_business_electricity%2522%
- The topic ‘Inner Blocks field type bug’ is closed to new replies.