After upgrading to 9.4.2 Episerver.Cms.UI package does not work conten view mode for custom provider. Content provider was made with the help of articleshttp://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2014/11/content-providers-101--part-i-introduction-initialization-ui--identity-mapping/before upgrading after upgrading
Did you try to turn on websocket on your server?
Hi Quan Mai
I tried to include websocket, but to no avail. Problem still exists
Any errors in browser console?
Hi, we have the same issue with latest version.
Has anyone found a workaround?
I've filed a support case now.
Hi Marija Was there any response from support?
Hi, my co-worker solved it.
The issue is that projects js file throws an exception (which is unfortunately not visible in the console) if work ID is 0 (although Projects aren't even enabled from Admin mode!).
So, my colleague added a fake version ID and set the version in the provider:
public override IContentVersionRepository VersionRepository
return (this._myContentVersionStore ?? (this._myContentVersionStore = new MyContentVersionStore(this)));
I believe this should be fixed, I'll write to support to inform them and I'll let you know if there is a better workaround.
I've got the info that a bug has been reported:
"CMS-3219 Issue with projects UI code and Content providers"
Our fix works so-so, it looks like it stops working after a while (?!). If my colleague fixes this, I'll keep you posted.
Marija, thanks for the help.
As a temporary fix for this I extracted "~/modules/_protected/CMS/CMS.zip" and updated the if-statement in "18.104.22.168/ClientResources/epi-cms/widgets.js" (in the method 'getProjectItemForContent', line 199, col 932) from:
if(_736.workId===0 && (_736.providerName === null || _736.providerName === ''))
Finally I just deleted CMS.zip and created a new one from my extracted files.