November Happy Hour will be moved to Thursday December 5th.

Content provider

Vote:
 

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 articles
http://world.episerver.com/blogs/Per-Magne-Skuseth/Dates/2014/11/content-providers-101--part-i-introduction-initialization-ui--identity-mapping/
before  upgrading

after  upgrading

Thanks,

Natallia

#146801
Mar 24, 2016 18:51
Vote:
 

Hi,

Did you try to turn on websocket on your server?

/Q

#146802
Mar 24, 2016 20:05
Vote:
 

Hi Quan Mai

I tried to include websocket, but to no avail. Problem still exists

#146807
Mar 25, 2016 15:26
Vote:
 

Hi,

Any errors in browser console?

/Q

#146819
Mar 27, 2016 10:44
Vote:
 

Hi,

no errors

#146826
Mar 28, 2016 14:33
Vote:
 

Hi, we have the same issue with latest version. 

Has anyone found a workaround?

#146972
Apr 01, 2016 10:01
Vote:
 

I've filed a support case now.

#146984
Apr 01, 2016 12:49
Vote:
 

Hi Marija
Was there any response from support?

#147006
Apr 04, 2016 9:15
Vote:
 

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
        {
            get
            {
                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.

BR,
Marija

#147008
Apr 04, 2016 10:19
Vote:
 

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. 

#147017
Apr 04, 2016 14:53
Vote:
 

Marija, thanks for the help.

#147067
Apr 05, 2016 16:40
Vote:
 

As a temporary fix for this I extracted "~/modules/_protected/CMS/CMS.zip" and updated the if-statement in "9.4.2.0/ClientResources/epi-cms/widgets.js" (in the method 'getProjectItemForContent', line 199, col 932) from:

if(_736.workId===0)

to:

if(_736.workId===0 && (_736.providerName === null || _736.providerName === ''))

Finally I just deleted CMS.zip and created a new one from my extracted files.

#147105
Edited, Apr 06, 2016 11:16
* 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.