Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Unknown error occurred: no static 'logLevel' in class 'QuickApp'


Recommended Posts

Posted

After beta update i am getting this error from the Velux quickapp

Anyone has any solution?

 

[14:11:23] [ERROR] [QUICKAPP2072]: Unknown error occurred: no static 'logLevel' in class 'QuickApp'

Posted

So, somewhere in the code, there is an attempt to access QuickApp.logLevel

Ex.

Please login or register to see this code.

Because classes created with the 'class' function, like QuickApp, will throw an error if we try to access a "class variable" or "static variable" in a class, and the variable is not defined. (It works for the QuickApp instance we access with self, but not for the class QuickApp)
So, this may be a bug where the author is meaning self.logLevel.
It could also be that he intended to use a class variable, QuickApp.logLevel, but he initializes it in one QA file and access it in another QA file, and the load order of the QA files have changes so he tries to access it before he initializes it.
Is the QA encrypted? If not you can make sure the class variable is initialized to something before accessed...

 

  • Topic Author
  • Posted (edited)
    59 minutes ago, jgab said:

    So, somewhere in the code, there is an attempt to access QuickApp.logLevel

    Ex.

    Please login or register to see this code.

    Because classes created with the 'class' function, like QuickApp, will throw an error if we try to access a "class variable" or "static variable" in a class, and the variable is not defined. (It works for the QuickApp instance we access with self, but not for the class QuickApp)
    So, this may be a bug where the author is meaning self.logLevel.
    It could also be that he intended to use a class variable, QuickApp.logLevel, but he initializes it in one QA file and access it in another QA file, and the load order of the QA files have changes so he tries to access it before he initializes it.
    Is the QA encrypted? If not you can make sure the class variable is initialized to something before accessed...

     

    Yes, my very first attempt was to look for any occourence of logLevel in the code..There is nowhere logLevel used in the entire code..That's why this is strange. And it did not happen before the new beta fw..So another mystery...

    Edited by Neo Andersson
  • Topic Author
  • Posted

    Its not encrypted...but i have no clue what else to do..I searched for the logLevel usage throughout the entire code..nowhere found..unless there is some possibility to hide a file from users that i don't know of..
    I saw something about changed debug behaviour in the last beta change log, maybe this is related to it 
    Maybe somone from Fibaro can take a look into it..

     

    Posted

    So, then it may be the same kind of error but in Fibaro's new beta FW...  maybe related to the new debug functionality...
    and it only happens in very specific cases, like in the Velux QA, as I haven't seen it yet in my own QAs...

    Posted

    Can you just try and add

    Please login or register to see this code.

    in the main QA file on top-level (NOT inside :onInit() )
    and see if the error goes away...?
  • Topic Author
  • Posted

    ohh, this is very strange...
    Having your line added, the error does not appear..

    and after that i removed your line,and the error still does not come up..

     

    Posted

    What can I say - magic 🤓

    • Like 2

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      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.

    ×
    ×
    • Create New...