Try our conversational search powered by Generative AI!

Custm ContentProvider throwing widget.js error after upgrade to episerver 11

Vote:
 

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:
TypeError: this.noDataMessages is null; can't access its "single" property[Learn More] widgets.js:2:558865

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

#199679
Edited, Dec 05, 2018 10:57
Vote:
 

Do you have a custom gadget to display blocks or media?

#199796
Dec 11, 2018 17:13
Vote:
 

For blocks and media we only use the default episerver gadget.

#199803
Dec 12, 2018 9:31
Vote:
 

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")

#200121
Jan 02, 2019 12:56
* 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.