Console error after plugin install

Technical Support
  • Hello all,

    Running v1.4.4 has been working fine until I installed the MailGun plugin from the control panel. After restarting the forum software from the control panel, all users now get a 502 Bad Gateway. After investigation, when a user tries to access the forum this error is thrown:

    1/3 22:43:00 [28851] - error:  TypeError: Cannot read property 'loggedIn' of undefined
        at helpers.displayMenuItem (/opt/nodebb/public/src/modules/helpers.js:20:44)
        at checkConditionalHelpers (/opt/nodebb/node_modules/templates.js/lib/templates.js:269:76)
        at parse (/opt/nodebb/node_modules/templates.js/lib/templates.js:426:15)
        at parseTemplate (/opt/nodebb/node_modules/templates.js/lib/templates.js:133:14)
        at Object.templates.parse (/opt/nodebb/node_modules/templates.js/lib/templates.js:119:11)
        at /opt/nodebb/node_modules/templates.js/lib/templates.js:169:30
        at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:445:3)

    Removing the plugin folder in the node_modules directory and uninstalling the plugin via npm yielded no result.

    Google results showed few results with this issue, and none seemed actually resolved. Any help figuring this out would be much appreciated!

  • Not sure why data.config would be undefined in that helper method. You can try with it should prevent that crash.

  • @baris Just to make sure before I screw anything up, I have to switch from the v1.x.x branch to master, right?

  • Yes, make a backup of your database incase you want to go back to 1.x.x

  • @baris That does seem to have worked! Thanks!

Suggested Topics

  • 0 Votes
    9 Posts

    @pitaj Clearing my browser cache didn't do anything either. For context my browser is Opera GX

    Thanks a lot for your help! The issue is now forwarded to the Quill github

  • Login error

    Unsolved Technical Support
    0 Votes
    8 Posts

    @ushi said in Login error:

    When I try to log in, I get such an error message
    "Login failed
    We are unable to connect you to the system, as it has been too long. please try again."
    What to do?

    I'll explain what the problem is,
    Apparently the forum server is too slow and did not load the ssl certificate.
    So you need to change the "http: //" in the url "https: //" and then try to connect again ... (I also translate from Hebrew, maybe you should add a category in Hebrew ...)

  • send email error 404

    Unsolved Technical Support
    0 Votes
    1 Posts

    can't send email error in log appear

  • 0 Votes
    3 Posts

    @HolyPhoenix I followed that guide, but I couldnt install. Is it difficult to install to C9?

  • 0 Votes
    14 Posts

    Thank you.
    I did disable the option in the API-write module, and now it's working in a shell terminal when I send the above CURL command.
    But when I try to use CURL in HTTPS within my PHP program,
    I get this message (401) : A valid login session was not found. Please log in and try again.
    I don't understand why I get this message, because :

    I'm sending the Master token in the Header by calling the PHP function curl_setopt with the option CURLOPT_HTTPHEADER I try to send the credentials (login/password) by calling the PHP function curl_setopt with the option CURLOPT_USERPWD and login/password.