London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

JS-error after upgrading to CMS 11

Vote:
0

We are seeing this error on a page with a simple form

Uncaught ReferenceError: epi is not defined
    at initializeOnRenderingFormDescriptor (GetFormInitScript?formGuid=ffd2ca48-6da9-4be4-9a67-19aecdc74667&formLanguage=sv:7)
    at GetFormInitScript?formGuid=ffd2ca48-6da9-4be4-9a67-19aecdc74667&formLanguage=sv:32

It is happening here:

(function initializeOnRenderingFormDescriptor() {
    // each workingFormInfo is store inside epi.EPiServer.Forms, lookup by its FormGuid
    var workingFormInfo = epi.EPiServer.Forms["ffd2ca48-6da9-4be4-9a67-19aecdc74667"] = {



#189015
Mar 08, 2018 14:37
Vote:
2

It seems that the EPiServerForms.js is not loaded correctly. Do you have @Html.RequiredClientResources("Footer"), @Html.RequiredClientResources("Header") on your template. Is there any 404 error in your browser console?

#189031
Mar 09, 2018 3:11
Vote:
0

Thanks, That was the problem, a little _ had slipped in to the required....
Now it works!

#189049
Mar 09, 2018 11:18
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.