November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi! epi-cms/widget/HierarchicalList is deprecated
https://world.episerver.com/documentation/Release-Notes/ReleaseNote/?releaseNoteId=CMS-8817
suggestion to use this below instead
: base("epi-cms/component/Media")
Hi.
After upgrading to episerver 11 we are experiencing that one of our contentProviders are getting an error in the widget.js script. The error is this one:
_updateListQuery http://hvl.dev.local/episerver/CMS/11.8.0/ClientResources/epi-cms/widgets.js:2:558865
_selectedTreeItemsSetter http://hvl.dev.local/episerver/CMS/11.8.0/ClientResources/epi-cms/widgets.js:2:553988
set http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/epi.js:2:42835
_treePathsSetter http://hvl.dev.local/episerver/CMS/11.8.0/ClientResources/epi-cms/widgets.js:2:553880
setTreePaths http://hvl.dev.local/episerver/CMS/11.8.0/ClientResources/epi-cms/widgets.js:2:553624
epi-cms/asset/HierarchicalList/</_setupTree/< http://hvl.dev.local/episerver/CMS/11.8.0/ClientResources/epi-cms/widgets.js:2:615609
<anonymous> self-hosted:978:17 _21b http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/epi.js:2:43406
dojo/Stateful/</watch/this._watchCallbacks http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/epi.js:2:43444
_set http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/shell/widgets.js:2:19897
_updateSelectionProperties http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/shell/widgets.js:2:477390
setSelection http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/shell/widgets.js:2:476769
userSelect http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/shell/widgets.js:2:479628
onMouseDown http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/epi/shell/widgets.js:2:478320
_19e http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/dojo/dojo.js:15:39734
onMouseDown http://hvl.dev.local/episerver/CMS/11.8.0/ClientResources/epi-cms/widgets.js:2:63304
_19e http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/dojo/dojo.js:15:39734
onMouseDown http://hvl.dev.local/episerver/CMS/11.8.0/ClientResources/epi-cms/widgets.js:2:59554
dojo/_base/lang/</hitch/<
http://hvl.dev.local/episerver/Shell/11.8.0/ClientResources/dojo/dojo.js
:15:30860
The error occures when i try to click on the root folder for the contentprovider, and no data is returned.
I have debugged through the contentprovider LoadChildrenReferencesAndTypes and LoadContent methods, and both are returning what is expected, but still no data in the cms. the initialization class is as follows:
[InitializableModule]
[ModuleDependency(typeof(InitializationModule))]
public class EmployeeDataProviderInitialize : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
var contentRepository = context.Locate.ContentRepository();
var providerManager = context.Locate.Advanced.GetInstance<IContentProviderManager>();
var entryPoint = contentRepository.GetChildren<EmployeeRootFolder>(ContentReference.RootPage).FirstOrDefault();
if (entryPoint == null)
{
entryPoint = contentRepository.GetDefault<EmployeeRootFolder>(ContentReference.RootPage);
entryPoint.Name = EmployeeDataProviderSettings.ProviderDisplayName;
contentRepository.Save(entryPoint, SaveAction.Publish, AccessLevel.NoAccess);
}
var providerValues = new NameValueCollection
{
{ContentProviderElement.EntryPointString, entryPoint.ContentLink.ID.ToString()},
{ContentProviderElement.CapabilitiesString, ContentProviderElement.FullSupportString}
};
var employeeDataProvider = new EmployeeDataProvider();
employeeDataProvider.Initialize(EmployeeDataProviderSettings.Key, providerValues);
providerManager.ProviderMap.AddProvider(employeeDataProvider);
}
}
Has anyone else experienced this after upgrading? it was running on episerver 10.10.1, and are now running episever 11.10.1
In advance thanks for your help.
Best Regards
Pål