Title: wordpress gutenberg validation error on save function
Last modified: September 12, 2018

---

# wordpress gutenberg validation error on save function

 *  Resolved [derrida](https://wordpress.org/support/users/derrida/)
 * (@derrida)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/wordpress-gutenberg-validation-error-on-save-function/)
 * hey
    so i am playing with wordpress gutenberg block dev. and already made some
   simple one. now i am trying to make a more complicated one of a slider. everything
   works untill the save function where i get validation error and a bizzare notice
   about EndTag which i do not get. this is my save function , for now i am just
   trying to save the slides titles. if i console log within the map, i do get what
   i want.
 *     ```
       	save: function( props ) {
           const { slides } = props.attributes; 
           const id = props.attributes.id;
   
           const displaySlides = slides.map((slide) => {
             return (
               <div>
                 <span>{slide.title}</span>
               </div>
             )
           });
   
           return (
             <div>
               {displaySlides}
             </div>
           )
         },
       ```
   
 * i get 1 – block validation: expected token of type ‘endTag’
 * and 2- block validation : block valifation failed for …..then the expected and
   the actual. by the way, in the actual i do get the right result
 * what am i missing here?

Viewing 1 replies (of 1 total)

 *  [ashiquzzaman](https://wordpress.org/support/users/ashiquzzaman/)
 * (@ashiquzzaman)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/wordpress-gutenberg-validation-error-on-save-function/#post-10797297)
 * This is because, your html node of edit function didn’t match with save function.
   Html nodes of those two function need to match for this error to resolve

Viewing 1 replies (of 1 total)

The topic ‘wordpress gutenberg validation error on save function’ is closed to new
replies.

 * ![](https://ps.w.org/gutenberg/assets/icon-256x256.jpg?rev=1776042)
 * [Gutenberg](https://wordpress.org/plugins/gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenberg/reviews/)

## Tags

 * [Validation error](https://wordpress.org/support/topic-tag/validation-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [ashiquzzaman](https://wordpress.org/support/users/ashiquzzaman/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/wordpress-gutenberg-validation-error-on-save-function/#post-10797297)
 * Status: resolved