• Leaderboard plugin creating site crash.

    when i go to /leaderboard it gives error
    here is the log

    2020-09-22T07:31:53.048Z [4567/15151] - warn: [middleware], checkGlobalPrivacySettings deprecated, use canViewUsers or canViewGroups
    

    Installed 2.1.0 | Latest 2.1.0

  • Gamers Admin

    Published 2.1.1, that should fix the above warning.


  • @baris

    2.1.1 and nodeBB 1.14.3

    2020-09-22T17:34:01.774Z [20000/16004] - error: /opt/vapor/nodebb/node_modules/nodebb-plugin-leaderboard/index.js:30
            const canView = await privileges.global.can('view:users', req.uid);
                            ^^^^^
    
    SyntaxError: await is only valid in async function
        at wrapSafe (internal/modules/cjs/loader.js:1047:16)
        at Module._compile (internal/modules/cjs/loader.js:1097:27)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
        at Module.load (internal/modules/cjs/loader.js:977:32)
        at Function.Module._load (internal/modules/cjs/loader.js:877:14)
        at Module.require (internal/modules/cjs/loader.js:1019:19)
        at Module.module.require (/opt/vapor/nodebb/src/plugins/index.js:51:25)
        at require (internal/modules/cjs/helpers.js:77:18)
        at Object.Plugins.requireLibrary (/opt/vapor/nodebb/src/plugins/index.js:70:32)
        at registerHooks (/opt/vapor/nodebb/src/plugins/load.js:177:13)
    
    

  • @baris hey
    Now on Navigation /leaderboard route is not showing
    And if i go to /leaderboard it going to 404 error page 😕

  • Gamers Admin

    Published 2.1.2, let me know if it works now.


  • @baris now runs ok. Thnk you

Suggested Topics

| |