• Resolved donbowman

    (@donbowman)


    This happens on open edito of a page w/ a form. I’m not sure what i am suppsoed to do:

    Block validation: Block validation failed foruagb/forms` ({name: ‘uagb/forms’, icon: {…}, keywords: Array(2), attributes: {…}, providesContext: {…}, …}).

    Content generated by save function:

    <div class=”wp-block-uagb-forms uagb-forms__outer-wrap uagb-block-c760a1d9 uagb-forms__medium-btn contact_us” id=”contact-form”><form class=”uagb-forms-main-form” method=”post” autocomplete=”on” name=”uagb-form-c760a1d9″><div class=”uagb-forms-form-hidden-data”><input type=”hidden” class=”uagb_forms_form_label” value=”contact_us”/><input type=”hidden” class=”uagb_forms_form_id” value=”uagb-form-c760a1d9″/></div><div class=”uagb-form-reacaptcha-error-c760a1d9″></div><div class=”uagb-forms-main-submit-button-wrap wp-block-button”><button class=”uagb-forms-main-submit-button wp-block-button__link”><div class=”uagb-forms-main-submit-button-text”>Submit</div></button></div></form><div class=”uagb-forms-success-message-c760a1d9 uagb-forms-submit-message-hide”><span>Thanks! Someone will contact you.</span></div><div class=”uagb-forms-failed-message-c760a1d9 uagb-forms-submit-message-hide”><span>There was an error. Email web-info @ agilicus.com if you need assistance.</span></div></div>

    Content retrieved from post body:

    <div class=”wp-block-uagb-forms uagb-forms__outer-wrap uagb-block-c760a1d9 uagb-forms__medium-btn contact_us” id=”contact-form”><form class=”uagb-forms-main-form” method=”post” name=”uagb-form-c760a1d9″>

    <div class=”uagb-forms-form-hidden-data”><input type=”hidden” class=”uagb_forms_form_label” value=”contact_us”/><input type=”hidden” class=”uagb_forms_form_id” value=”uagb-form-c760a1d9″/></div><div class=”uagb-forms-main-submit-button-wrap”><button class=”uagb-forms-main-submit-button”><div class=”uagb-forms-main-submit-button-text”>Submit</div></button></div></form><div class=”uagb-forms-success-message-c760a1d9 uagb-forms-submit-message-hide”><span>Thanks! Someone will contact you.</span></div><div class=”uagb-forms-failed-message-c760a1d9 uagb-forms-submit-message-hide”><span>There was an error. Email web-info @ agilicus.com if you need assistance.</span></div></div>`

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rajkiran Bagal

    (@rajkiranb)

    Hey @donbowman,

    The validation error you mentioned above is generated by Gutenberg whenever the markup rendered or default attributes of a block change between different versions.

    Ideally, Gutenberg shows a button saying “Attempt Block Recovery” over that block & when you click on that button & update the page the issue gets resolved.

    So suppose there are multiple such blocks then it would be very tiresome to go & click each & every such button.

    So from Spectra, we gave a feature named “Automatic Block Recovery” which is in Settings > Spectra > Settings > Editor Options & it is enabled by default.

    What that feature does is it recovers all the invalid blocks on a page when you just refresh the editor page & update it.

    So, if you are seeing the above error in the console but your blocks look fine then you do not need to worry Spectra has recovered the blocks for you & if you update the page & refresh, those errors will never be shown again.

    If you see the “Attempt Block Recovery” button, then just check if you have enabled Automatic Block Recovery & refresh the editor & your blocks will be recovered.

    Hope the above information helps, let me know if you need any help.

    Looking forward to hearing from you.

    Thread Starter donbowman

    (@donbowman)

    automatic block recovery is enabled. It does not resolve this.

    I do not see an Attempt Block Recovery option. I just get this error.

    Plugin Support Rajkiran Bagal

    (@rajkiranb)

    Hey @donbowman,

    Can you please confirm if below this error you get a Message from Spectra – “All Spectra Blocks on this page have been recovered!”

    If yes then just update the page & refresh the editor, you will not see those errors again.

    Looking forward to hearing from you.

    Thread Starter donbowman

    (@donbowman)

    it does not say this.

    When opening the page for edit, i get below. No indication of repair, no ability to repair.

    Block validation: Expected attributeclassof valuewp-block-uagb-section uagb-section__wrap uagb-section__background-none uagb-block-14b68a4a uagb-section__background-undefined, sawwp-block-uagb-section uagb-section__wrap uagb-section__background-undefined uagb-block-14b68a4a.

    is followed by
    logger.js:17 Block validation: Block validation failed foruagb/section` ({name: ‘uagb/section’, icon: {…}, keywords: Array(3), attributes: {…}, providesContext: {…}, …}).

    Content generated by save function:

    <section class=”wp-block-uagb-section uagb-section__wrap uagb-section__background-none uagb-block-14b68a4a uagb-section__background-undefined” id=”recording”><div class=”uagb-section__overlay”></div><div class=”uagb-section__inner-wrap”></div></section>

    Content retrieved from post body:

    <section class=”wp-block-uagb-section uagb-section__wrap uagb-section__background-undefined uagb-block-14b68a4a” id=”recording”><div class=”uagb-section__overlay”></div><div class=”uagb-section__inner-wrap”>

    </div></section>`

    this is repeated 8 times.

    It then says:

    jquery.min.js?ver=3.6.0:2 XHR finished loading: POST "https://www.agilicus.com/wp-admin/admin-ajax.php".
    index.js:101 Fetch finished loading: POST "https://www.agilicus.com/wp-json/wp/v2/tribe_events/1771854/autosaves?_locale=user".
    jquery.min.js?ver=3.6.0:2 XHR finished loading: POST "https://www.agilicus.com/wp-admin/admin-ajax.php".

    and that is it.

    Hello @donbowman,

    Please open a support ticket from our website so that our support team can look into this even better.

    Thanks.

    Hello @donbowman,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘block validation failure on uagb/forms’ is closed to new replies.