Solutions
Pricing
Resources
What's new
Languages
English
French
Chinese
Spanish
Start free trial
Ecommerce Shopify WordPress Discussion
Home
/
ask me anything
/
/
Block validation failed in WordPress 6.4.2, but it works on 6.0.0?
Block validation failed in WordPress 6.4.2, but it works on 6.0.0?
attributes: { tabs: { type: 'array', default: [ { tabLabel: 'Tab 1', tabContent: 'Content for Tab 1' } ], }, }, edit: ({ attributes, setAttributes }) => { const { tabs } = attributes; const updateTabContent = (value, tabIndex) => { const updatedTabs = [...tabs]; updatedTabs[tabIndex].tabContent = value; setAttributes({ tabs: updatedTabs }); }; return ( <div className="my-custom-block"> {tabs.map((tab, tabIndex) => ( <div key={tabIndex}> <RichText tagName="h6" value={tab.tabLabel} onChange={(value) => updateTabLabel(value, tabIndex)} placeholder="Tab Label..." /> </div> ))} </div> ); }, save: ({ attributes }) => { const { tabs } = attributes; return ( <div className="my-custom-block"> {tabs.map((tab, tabIndex) => ( <div key={tabIndex}> <h6>{tab.tabLabel}</h6> <div>{tab.tabContent}</div> </div> ))} </div> ); }, This custom block is triggering an error under WordPress 6.4.2 but if I use WordPress 6.0.0 then it works fine. This is what I'm seeing on the console: Block validation: Block validation failed for blogee-accordion-block/blogee-accordion Content generated by save function: <div class="wp-block-blogee-accordion-block-blogee-accordion"></div> Content retrieved from post body: <div class="wp-block-blogee-accordion-block-blogee-accordion"><div><p>Tab</p></div><div><p>Tab 2</p></div></div>
Turbo Multi-language Translator
Make the better internet purchasing globaly
Turbosify SEO Speed Booster
5.0 (7)
•
Free plan available
Get better conversions by improving store loading speed
Installed
Turbo Multi-language Chat - AI Customer service in one hand
Shopify: Automatic Discount Detail On Product Detail Page
Megamenu implementation on Shopify Store. CSS gets messed up
how to update total on click plus and minus button shopify cart page
Many issues trying to register webhooks for customs shopify app. Was working till it wasnt
How to get content of the home page in Shopify Storefront API?
Our products
The help you need, when you need it
App by Turbo Engine
3 apps • 5.0 average rating
Turbosify Speed Booster
5.0 (7)
Get better conversions by optimizing shopify store Google page speed
Installed
Turbosify Translator for Wordpress Woocommerce
5.0 (74)
•
Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no
No technical required
Grow your business here
Whether you want to sell products down the street or around the world, we have all the tools you need.
Start free trial