# Javascript errors with form on WordPress Gutenberg page

**URL:** <https://community.hubspot.com/t/javascript-errors-with-form-on-wordpress-gutenberg-page/87607>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [August 16, 2023, 10:40am UTC](https://community.hubspot.com/t/javascript-errors-with-form-on-wordpress-gutenberg-page/87607 "2023-08-16T10:40:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZWade](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zwade/32/199640_2.png) [@ZWade](https://community.hubspot.com/u/ZWade)\
**Post date:** [August 16, 2023, 10:40am UTC](https://community.hubspot.com/t/javascript-errors-with-form-on-wordpress-gutenberg-page/87607/1 "2023-08-16T10:40:16Z")

</div>

Hi all. I’m getting errors on the javascript console when displaying/submitting a form on a WordPress Gutenberg page. It says “Uncaught (in promise) DOMException: Failed to execute ‘postMessage’ on ‘Window’”. Can anyone point me in the right direction for resolving this?

 ![Screenshot from 2023-08-11 17-28-54.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7671323f2f7ac2f40504ec7d172201e24f5f6c82.png)

---

<div class="post-metadata">

**Author:** ![LastRose](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lastrose/32/193281_2.png) [@LastRose](https://community.hubspot.com/u/LastRose)\
**Post date:** [August 17, 2023, 1:58pm UTC](https://community.hubspot.com/t/javascript-errors-with-form-on-wordpress-gutenberg-page/87607/2 "2023-08-17T13:58:44Z")

</div>

The first error is 404 error on the script. All the other errors cascade from that first one.

You will have to figure out why the script isn’t loading. (Some form of CORS, wrong URL, etc)
