Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
From which version did you upgrade?
If it's from <10 there were some breaking changes introduced in version 10 regarding dojo:
It is always a good idea to add <clientResources debug="true" /> to episerver.framework section for developing site: https://world.episerver.com/blogs/Ben-McKernan/Dates/2014/8/Uncompressed-JavaScript-for-EPiServer-76/. Would give you much better error messages
Hi,
I upgrate from 10.x to latest
StringListEditorDescriptor.cs
[EditorDescriptorRegistration(TargetType = typeof(IList<string>))]
class StringListEditorDescriptor : EditorDescriptor
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
ClientEditingClass = "electrolux/editors/stringlist/Editor";
base.ModifyMetadata(metadata, attributes);
}
}
Module.config
<?xml version="1.0" encoding="utf-8"?>
<module>
<assemblies>
<!-- This adds the Electrolux template assembly to the "default module" -->
<add assembly="Electrolux.Web" />
</assemblies>
<clientResources>
<add name="epi-cms.widgets.base" path="Styles/Styles.css" resourceType="Style"/>
<add name="datetimes" path="Scripts/UTCDateTimeTextBox.js"/>
</clientResources>
<dojo>
<!-- Add a mapping from alloy to ~/ClientResources/Scripts to the dojo loader configuration -->
<paths>
<add name="electrolux" path="" />
<add name="datetimes" path="Scripts"/>
</paths>
</dojo>
</module>
Error message
link to view screenshot of error
Thanks,
Hi Quan,
I don't know why since i upgraded episerver to latest version it seems that all custom properties is not work
I view console tab from chrome and i saw a lot of log error related to dojo
Can you please give an advaice
My module.config
Exception on brownser:
GET https://sitelocal.local/ClientResources/Scripts/editors/stringlist/Template.html 404
GET https://sitelocal.local/EPiServer/CMS/null 404
https://sitelocal.local/EPiServer/CMS/null 404
dojo.js:8827 Error: Invalid template:
at Function._21f.getCachedTemplate (widgets.js:2)
at Object.buildRendering (widgets.js:2)
at Object.create (widgets.js:2)
at Object.postscript (widgets.js:2)
at new (dojo.js:4381)
at Object._6ff (widgets.js:2)
at dojo.js:3135
at runFactory (dojo.js:1107)
at execModule (dojo.js:1236)
at dojo.js:802 "Error: Invalid template:
at Function._21f.getCachedTemplate (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:69677)
at Object.buildRendering (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:67496)
at Object.create (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:15484)
at Object.postscript (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:14925)
at new (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:4381:7)
at Object._6ff (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:251595)
at https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3135:55
at runFactory (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:1107:43)
at execModule (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:1236:5)
at https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:802:7
----------------------------------------
rejected at signalDeferred (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8372:15)
at signalListener (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8343:5)
at Promise.Deferred.then.promise.then (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8546:5)
at when (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:9065:26)
at Object._createInternal (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250546)
at Object. (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250145)
at https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3135:55
at Object.map (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3650:15)
at Object._createWidgets (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250075)
at Object. (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:249660)
Thanks
Thao Pham