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

Error in Loading page. #2388


User avatar
0
huntethan89 created

Hi,

whenever I am loading page on browser i am getting some template error. Please check and tell me where is error. I am attaching the screenshot.


8 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    In the _Header.cshtml file under Mpa\Views\Layout\ directory, there are two script tags. First one starts like this

    <script id="linkedAccountsSubMenuTemplate" type="x-tmpl-mustache">
    

    Can you share those tag's content ?

    Thanks.

  • User Avatar
    0
    huntethan89 created

    Hi ,

    Following is the script which is added in header.cshtml

    <script id="linkedAccountsSubMenuTemplate" type="x-tmpl-mustache"> {{#items}} <li> <a href="" data-user-id="{{id}}" data-tenant-id="{{tenantId}}" class="recently-linked-user"> {{shownUserName}} </a> </li> {{/items}} {{#hasLinkedUsers}} <li class="divider"></li> {{/hasLinkedUsers}} <li> <a href="" id="ManageLinkedAccountsLink"> <i class="icon-settings"></i> @L("ManageAccounts") </a> </li> </script>

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you updated mustache.js or make any changes in _Header.cshtml ? I have tried with this and it worked for me.

    By the way, does this error effects any part of your screen ?

  • User Avatar
    0
    huntethan89 created

    Hi, There is one issue I am getting in i-phone and i-pads. When I open website in i-phone or i-pads the 3 bar icon button is not working which we used to open menu bar. So, I thought this is due to this error. I am not sure about this.

    I am attaching screen shot with this message that where is error occurring. It is working fine on All other devices like android. Only problem in apple devices. The Button mark in red(in attached figure) is not working.

  • User Avatar
    0
    huntethan89 created

    Hi, Issue is resolved. There is confliction in mustache.js with some other script. Now i am calling Mustache.js at end. Now the button is working fine in Apple devices. But the error which i showed you still occurred. But i am not facing any problem till now.

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I'm glad that it is solved.

    Can you share the library name and version conflicting with Mustache ? And, did you updated Mustache.js in your project ?

    Thanks.

  • User Avatar
    0
    huntethan89 created

    Hi,

    The library which conflicts is not the inner library. I am using some external library (name - ays-beforeunload-shim.js).

    No, i didn't update the mustache.js.

    Any solution regarding console error which I discussed before ?

    Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I'm trying to find the cause of that problem. Our version does not have this error, I think it might be related to one of the libraries you have used.

    I will try to add ays-beforeunload-shim.js to my project and let you know of the result.

    Thanks.