Jump to content
  • X-Post: Frontend variable is null, so some pages don't load


    mortenmoulder
    • Annoyance

    Original post: 

    On 6.10.0-rc2.

     

    No clue why, but at some point the variable "timers" is being set to null. I tried clearing everything in Chrome and I tried incognito, but at some point "timers" is null.

     

    A fix is quite easy. Instead of using "var", use "const". We know it's not supposed to be overwritten, so just set it to a constant.

     

    File location: /usr/local/emhttp/webGui/include/DefaultPageLayout.php

     

     




    User Feedback

    Recommended Comments

    Test your system in safe mode.

    The timers variable is never set to null in stock unraid.

     

    Ps. making it a constant is not a proper workaround. This variable is used to keep track of various timers.

     

    Link to comment
    46 minutes ago, bonienl said:

    Test your system in safe mode.

    The timers variable is never set to null in stock unraid.

     

    Ps. making it a constant is not a proper workaround. This variable is used to keep track of various timers.

     

     

    Not sure how a frontend variable would change in safe mode. I guess I can give it a try.

     

    Making it a constant could be a proper workaround. The object is never overwritten, so making it a constant would prevent it from ever being null. You can add stuff to objects in JavaScript, even though they're set to a constant. Weird, I know.

    Link to comment

    Safe mode will load the system without plugins, which may interfere.

     

    I don’t see this problem in rc2 and all pages load properly.

     

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...