• Hi ??
    After update WP 5.4 my custom Gutenberg blocks gave me this error after I save a post

    blocks.min.js?ver=423068d7079f57cf9f02458ccb4a6131:3 Block validation: Block validation failed for 'andyandrejka/profile-pic'
    
    Content generated by save function:
        <section class="Componet profile_pic" class="wp-block-andyandrejka-profile-pic"><div class="Wrapper"><div class="img_w"><div class="img" style="background-image:url(https://192.150.140.108/wp/wp-content/uploads/2020/03/84958218_486729275350316_8183725397188370510_n.jpg)"></div></div></div></section>
    
    Content retrieved from post body:
        <section class="Componet profile_pic" class="wp-block-andyandrejka-profile-pic"><div class="Wrapper"><div class="img_w"><div class="img" style="background-image:url(https://192.150.140.108/wp/wp-content/uploads/2020/03/84958218_486729275350316_8183725397188370510_n.jpg)"></div></div></div></section>

    Has the process of creating your own blocks changed?

    • This topic was modified 4 years, 11 months ago by thomasparsley.
    • This topic was modified 4 years, 11 months ago by thomasparsley.
    • This topic was modified 4 years, 11 months ago by Jan Dembowski.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Tyler

    (@tylerthedude)

    Hi there,

    It’s quite possible there were some changes to the Gutenberg plugin which added more validation that potentially blocks the custom block from running. However, it’s difficult to pinpoint exactly why without the source code of the custom block. I’d recommend posting a message in the Gutenberg plugin support forums and attaching the source code for the custom block along with the error, as they will have more insight as to why this might have happened.

    Regards,
    Tyler

    Thread Starter thomasparsley

    (@thomasparsley)

    Okay. Thanks ??

    For reference purpose

    More detail about the problem (and a solution) can be found here

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP 5.4 – Block validation failed for’ is closed to new replies.