Base solution for your next web application
Open Closed

Version 6.2.1 Displays blank page after login #5883


User avatar
0
jchester26 created

Hi, i've been using version 6.1 with no issues, however just tried using the new version 6.2.1 and login page displays OK, but after login the app/main/dashboard page (or any other page) is blank. The below is the page source.


<!doctype html>
<html lang="en" dir="ltr">
<head prefix="og: http://ogp.me/ns#">
    <meta charset="utf-8">
    <title>XYZ</title>
    <base href="/">

    <meta property="og:title" content="XYZ" />
    <meta property="og:image" content="" />
    <meta property="og:description" content="XYZ" />
    <meta property="og:url" content="">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="XYZ">
    <meta name="description" content="XYZ">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
    <app-root></app-root>
<script type="text/javascript" src="runtime.js"></script><script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="styles.js"></script><script type="text/javascript" src="scripts.js"></script><script type="text/javascript" src="vendor.js"></script><script type="text/javascript" src="main.js"></script></body>
</html>

I cannot work out why! Please help.

Thanks,


6 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    did you check the logs?

  • User Avatar
    0
    jchester26 created

    Where are the logs stored/created.

    I have some more info after digging further. I had version 6.1 that I was using and would use .../version61/angular and would run npm start from that directory. I then downloaded the new version to ..version621 directory. I then ran yarn and then npm start from the ../version621/angular/ directory. However I noticed that the page source displayed some info that comes from the index.html in the /version61/angular/src/ directory. So it may be that angular is chaching the previous build some how?

    I have cleared the IIS cache and tried npn cache clear --force and then run yarn and npm start again from the version621/angular directory. I now see the new index.html source, but again it is blank as per the above.

    Thanks,

  • User Avatar
    0
    aaron created
    Support Team

    Check:

    • browser console for JavaScript errors, and
    • *.Web.Host/App_Data/Logs.txt for server errors.
  • User Avatar
    0
    jchester26 created

    On further investigation, this appears to be an issue relating to the Visual Settings. In v6.1 there was an item in the user menu (top right) allowing a user to set their own 'Visual Settings' such as Green, Yellow or Blue themes etc. This appears to be no longer a menu item at the user level, but at the tenant level.

    When I upgraded to v6.2.1 I ran database migrations in case there where any databases, but it reported the DB was up to date (i.e. no migration changes). So I think v6.2.1 is reading a custom theme setting from the database but the css no longer exists! If I create a new database for v6.2.1 then all works fine.

    The development guide still shows 'Visual Settings' as an option in the user menu but it is not the same as the user menu in 6.2.1.

    I cannot find where the Visual Settings are stored in the DB so that I can change back to default to confirm.

    Can anyone tell me where Visual Settings for the user is stored?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jchester26

    It is stored in AbpSettings table. Executing below SQL Query should fix the problem;

    delete from AbpSettings where Name = 'App.UiManagement.Theme' and Value != 'demo8

  • User Avatar
    0
    jchester26 created

    Confirming that this fixed the issue. v6.2.1 is now working correctly with the original database content having removed those settings.

    Thanks for the help.