User dashboard throws JS errors

Lawrence LeFebour asked on April 10, 2017 16:07

Hi there, we're running v8.2.49 and I've created a new Role for a user and assigned that Role specific Dashboard apps (Pages, My Pages, My Desk, Outdated Pages) as the default apps. When impersonating the user in various browsers (caches cleared) and after clearing the app cache & restarting the app, the impersonated user only sees the Welcome tile in the Dashboard and the following JS errors are thrown: Uncaught TypeError: Cannot read property 'CMS' of null at f (GetResource.ashx?v=2&scriptmodule=/CMS/EventHub.js:1) at Object.subscribe (GetResource.ashx?v=2&scriptmodule=/CMS/EventHub.js:1) at new <anonymous> (GetResource.ashx?v=2&scriptmodule=/CMS/Mole.js:1) at <anonymous>:3:45 at Object.execCb (GetResource.ashx?scriptfile=~%2fCMSScripts%2fRequireJS%2frequire.js:6) at y.check (GetResource.ashx?scriptfile=~%2fCMSScripts%2fRequireJS%2frequire.js:6) at y.enable (GetResource.ashx?scriptfile=~%2fCMSScripts%2fRequireJS%2frequire.js:6) at y.init (GetResource.ashx?scriptfile=~%2fCMSScripts%2fRequireJS%2frequire.js:6) at GetResource.ashx?scriptfile=~%2fCMSScripts%2fRequireJS%2frequire.js:6

An Administrator Dashboard looks fine - all specified apps display. I've tried the solution suggested in this post (https://devnet.kentico.com/questions/blank-screen-when-logged-in) but that hasn't resolved the issue. Any insights would be appreciated.

Correct Answer

Lawrence LeFebour answered on April 10, 2017 18:35

Thanks Brenden, I was able to do some more digging and found another post with yours & others' comments: https://devnet.kentico.com/questions/configuring-page-level-permissions

I needed to enable Browse Tree & Read on the Content module (I had unchecked everything because I also want to limit the content that this new Role can modify). After making this change, the Dashboard displays with the proper apps.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on April 10, 2017 17:20

If the user is seeing the "Welcome" tile then it is working, you just have not set a default dashboard for that role. If you click on the Kentico icon in the upper left, you should be able to see the items you gave them access to (Pages, My Pages, My Desk, Outdated Pages). If not then you have not set your UI Permissions properly.

To set a default dashboard, go to the role you just created and click Default dashboard in the left nav and assign the apps the role will have on their dashboard.

0 votesVote for this answer Mark as a Correct answer

Lawrence LeFebour answered on April 10, 2017 17:43 (last edited on April 10, 2017 17:58)

Thanks Brenden, so the Default Dashboard for the new Role appears to be set up properly. There are 4 apps added for the Role: Pages, My Pages, My Desk, Outdated Pages.

Under the Role UI Personalization, here's what has been checked for this Role:

  • CMS
  • Administration
  • Content management
  • My Pages
  • Outdated Pages
  • Pages
  • My Desk

Under Pages, all child nodes are checked as well.

The JS error is still displayed in the Console for a user under this Role and no apps display on the Dashboard.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 10, 2017 18:52

Glad my post helped find you answer. Good luck

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.