Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

APP undefined when trying to apply Module Zero enhancements #558


User avatar
0
terry bentley created

I have been going through applying the latest changes to the Module Zero to my code using WinMerge and have messed something up and been spending days trying to figure out what is causing it. I was hoping someone may be able to point me in the right direction.

After I log in I get the following errors in the FIrefox Console or Visual Studio debug and the web page display is blank.

TypeError: $.fn.selectpicker is undefined multipleSeparator: ', ' default-en_US.js?v=... (line 39, col 5)

ReferenceError: App is not defined var resBreakpointMd = App.getResponsiveBreakpoint('md'); layout.js (line 10, col 9)

ReferenceError: App is not defined App.setAssetsPath(abp.appPath + 'metronic/assets/'); app.js (line 32, col 1)

It looks like the first error is an issue with not referencing the \libs\bootstrap-select\bootstrap-select.js

The second two errors appear to be an issue with \metronic\assets\global\scripts\app.js being called at the right time?

Not sure where to properly fix this though. Thanks...Terry


4 Answer(s)
  • User Avatar
    0
    terrybentley created

    I have been able to resolve these errors. There were quite a few more differences that I came across that needed to be applied. The application is almost working - I now need to figure out why I am only seeing the Dashboard and Administration in the sidebar.

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Have you grant access for new pages? Goto Role/User management and check it please.

  • User Avatar
    0
    terry bentley created

    Hi Yes. That is what I first thought that the permissions were somehow lost but that is not the case. The user and role have access to the entities. I even tried removing and re-adding and it made no difference. It appears I can see the "builtin" menu items like Tenant, Administration (and all its children) but not able to see all "my" entities that I used to be able to see and that still show up fine in the Permissions section.

    Thanks...Terry

  • User Avatar
    0
    terry bentley created

    Problem solved. The AppNavigationProvider.cs class was in the /App_Start/Navigation folder and when I made the changes to add the new features it looks like this class changed folders (?) Anyway, I had not moved my copy of the class to the /App/Startup and so it was using your copy. As soon as I replaced your copy with my copy, all was good.

    Thanks... Terry