Base solution for your next web application
Open Closed

Permissions not loading in edit modal in host mode #724


User avatar
0
noah created

I've downloaded the solution template and started working. I notice that when logging in as the default admin account into the host side, I don't see any permissions loading when trying to edit a role. The permissions do however appear when in a specific tenant. In the host side, I see this with no permissions tree ever loading. What could be causing this? There is no error in the audit log. In browser console, see this:

SCRIPT0: Unable to get property 'children' of undefined or null reference blob:71FED387-F8EE-4A44-86CF-2B310FB1DE22 (215,1)


9 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    IT's strange, because it's properly working for us. Can you check these:

    1. Disable any caching (you can open browser's dev tools and check 'disable change when dev tools is open', then refresh the page).
    2. Check if a proper request made to the server on the network tab of your browser. You can share the response with me.
    3. If not, check logs (Logs folder in the web project).

    Also, do you have a stacktrace for "Unable to get property 'children' of undefined or null reference" exception?

  • User Avatar
    0
    noah created

    The GetRolesForEdit call seems to happen fine, returning the object with array of permissions. Nothing in the server log.

    Here's what Chrome shows in console:

    <a class="postlink" href="http://screencast.com/t/4O6yIbGDegk">http://screencast.com/t/4O6yIbGDegk</a> <a class="postlink" href="http://screencast.com/t/j0aDEU6Ua">http://screencast.com/t/j0aDEU6Ua</a>

    (Also confirmed in IE 11)

  • User Avatar
    0
    hikalkan created
    Support Team

    OK, as I understand you downloaded the latest template (v1.7.1) and this error occurs in the first run. I will test it like that and inform you. Thanks.

  • User Avatar
    0
    noah created

    Thanks. My application version shows as v1.7.1.1

    Also noticed my ABP modules were 0.7.7.2, so I upgraded to 0.7.8. Issue still exists.

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Do you still have this problem. If so, can you share the network request's response for loding tree?

  • User Avatar
    0
    noah created

    This has not occurred after starting a new project from template. Perhaps it was something random with the previous project setup? Thanks for following up.

  • User Avatar
    0
    hikalkan created
    Support Team

    I also could not repeat the problem.

    Thank you too. Have a nice day.

  • User Avatar
    0
    rafalpiotrowski created

    Hi, I have this problem now! I am using ASP.NET Core/Angular its happening both on IIS and npm start

    error is: SCRIPT0: Unable to get property 'children' of undefined or null reference

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @rafalpiotrowski,

    Can you share a screenshot of your browser console with javascrip error ?