Forms - css/js assets not loading for Optimizely Forms

Vote:
 

We are getting the following console errors on our CMS pages that have EPIserver Form blocks on them.

If I navigate directly to those urls, they all 404.

Any help in a resolution to these errors would be greatly appreciated.

I see the files located here, from the Epi Forms installation:

Errors in text format:

GET https://mysite.dxcloud.episerver.net/util/EPiServer.Forms.Samples/ClientResources/ViewMode/jquery-ui.modified.js net::ERR_ABORTED 404
loadExternalScriptOnDemand @ WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhBuK6kMBo0YofTOgVmk2fAYF2clNhwC2erpRo-kJ8M-cRkWDkioJ7YJFtP5x9Ft8siQliQ7PFQ9H7p445Po0Zq9mVSoA7oBo1vavRx5QMMJDC8KvkzKJlTkm4uv0OTfxVSahNtVeNa89MqEEriDEybk1&t=637519926940000000:formatted:139
(anonymous) @ WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhBuK6kMBo0YofTOgVmk2fAYF2clNhwC2erpRo-kJ8M-cRkWDkioJ7YJFtP5x9Ft8siQliQ7PFQ9H7p445Po0Zq9mVSoA7oBo1vavRx5QMMJDC8KvkzKJlTkm4uv0OTfxVSahNtVeNa89MqEEriDEybk1&t=637519926940000000:formatted:1218
(anonymous) @ WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhBuK6kMBo0YofTOgVmk2fAYF2clNhwC2erpRo-kJ8M-cRkWDkioJ7YJFtP5x9Ft8siQliQ7PFQ9H7p445Po0Zq9mVSoA7oBo1vavRx5QMMJDC8KvkzKJlTkm4uv0OTfxVSahNtVeNa89MqEEriDEybk1&t=637519926940000000:formatted:1235
WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhBuK6kMBo0YofTOgVmk2fAYF2clNhwC2erpRo-kJ8M-cRkWDkioJ7YJFtP5x9Ft8siQliQ7PFQ9H7p445Po0Zq9mVSoA7oBo1vavRx5QMMJDC8KvkzKJlTkm4uv0OTfxVSahNtVeNa89MqEEriDEybk1&t=637519926940000000:formatted:139 GET https://mysite.dxcloud.episerver.net/util/EPiServer.Forms.Samples/ClientResources/ViewMode/EPiServerFormsSamples.js net::ERR_ABORTED 404
loadExternalScriptOnDemand @ WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhBuK6kMBo0YofTOgVmk2fAYF2clNhwC2erpRo-kJ8M-cRkWDkioJ7YJFtP5x9Ft8siQliQ7PFQ9H7p445Po0Zq9mVSoA7oBo1vavRx5QMMJDC8KvkzKJlTkm4uv0OTfxVSahNtVeNa89MqEEriDEybk1&t=637519926940000000:formatted:139
(anonymous) @ WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhBuK6kMBo0YofTOgVmk2fAYF2clNhwC2erpRo-kJ8M-cRkWDkioJ7YJFtP5x9Ft8siQliQ7PFQ9H7p445Po0Zq9mVSoA7oBo1vavRx5QMMJDC8KvkzKJlTkm4uv0OTfxVSahNtVeNa89MqEEriDEybk1&t=637519926940000000:formatted:1218
(anonymous) @ WebResource.axd?d=TzRGlCddaaqtz0Im2nSJhBuK6kMBo0YofTOgVmk2fAYF2clNhwC2erpRo-kJ8M-cRkWDkioJ7YJFtP5x9Ft8siQliQ7PFQ9H7p445Po0Zq9mVSoA7oBo1vavRx5QMMJDC8KvkzKJlTkm4uv0OTfxVSahNtVeNa89MqEEriDEybk1&t=637519926940000000:formatted:1235
eloqua-test-page:1 Refused to apply style from 'https://mysite.dxcloud.episerver.net/util/EPiServer.Forms.Samples/ClientResources/ViewMode/EPiServerFormsSamples.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
eloqua-test-page:1 Refused to apply style from 'https://mysite.dxcloud.episerver.net/util/EPiServer.Forms.Samples/ClientResources/ViewMode/jquery-ui.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
eloqua-test-page:1 Refused to apply style from 'https://mysite.dxcloud.episerver.net/util/EPiServer.Forms.Samples/ClientResources/ViewMode/jquery-ui.structure.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
eloqua-test-page:1 Refused to apply style from 'https://mysite.dxcloud.episerver.net/util/EPiServer.Forms.Samples/ClientResources/ViewMode/jquery-ui.theme.min.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

forms.config settings:

workInNonJSMode="false"
injectFormOwnJQuery="true"
injectFormOwnStylesheet="true"

#259188
Jul 20, 2021 18:13
Vote:
 

We have encountered the same issue on a number of projects.  There are various posts on World around this but none of them solved our issue:

My workaround solution was based on this post:

How to Exclude or Modify Episerver Forms Samples Javascript and CSS

I copied the CSS/JS resources from modules/_protected/EPiServer.Forms.Samples/3.7.0/ClientResources/ViewMode/ to a new folder and referenced them in CustomFormResources.

#272722
Feb 22, 2022 10:54
KK
Vote:
 

I got some missing file issue in module folder as well. I finally got it fixed by deleting the modules folder and regenerated. Not sure if this helps in your case. 

#283990
Jul 20, 2022 11:22
Sandy Foley - Jul 20, 2022 13:05
Thank you.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.