Composer error in v1.6.0

Moved Technical Support
  • 15/9 19:06:43 [18329] - error: TypeError: tags.concat is not a function
    at Object.plugin.addPrefetchTags [as method] (/var/www/html/nodebb/node_modules/nodebb-plugin-composer-default/library.js:61:14)
    at /var/www/html/nodebb/src/plugins/hooks.js:123:12
    at /var/www/html/nodebb/node_modules/async/dist/async.js:2489:9
    at replenish (/var/www/html/nodebb/node_modules/async/dist/async.js:946:17)
    at /var/www/html/nodebb/node_modules/async/dist/async.js:950:9
    at eachOfLimit (/var/www/html/nodebb/node_modules/async/dist/async.js:975:24)
    at /var/www/html/nodebb/node_modules/async/dist/async.js:980:16
    at Object.reduce (/var/www/html/nodebb/node_modules/async/dist/async.js:2488:5)
    at fireFilterHook (/var/www/html/nodebb/src/plugins/hooks.js:115:9)
    at Object.Plugins.fireHook (/var/www/html/nodebb/src/plugins/hooks.js:96:4)
    at links (/var/www/html/nodebb/src/meta/tags.js:104:12)
    at /var/www/html/nodebb/node_modules/async/dist/async.js:3853:24
    at replenish (/var/www/html/nodebb/node_modules/async/dist/async.js:946:17)
    at iterateeCallback (/var/www/html/nodebb/node_modules/async/dist/async.js:931:17)
    at /var/www/html/nodebb/node_modules/async/dist/async.js:906:16
    at /var/www/html/nodebb/node_modules/async/dist/async.js:3858:13

    Any help would be appreciated , my forum is down until i solve this problem

  • Hey there, please report the version of your composer plugin, as well as git rev-parse HEAD in NodeBB. Thanks.


Suggested Topics


  • 0 Votes
    9 Posts
    150 Views

    @DownPW of you're not already serving static assets with nginx, I'd recommend doing that. You should be able to set a separate rate limit for that while still protecting NodeBB.

    It may also be possible to whitelist cloudflare so it can bypass the rate limit.

  • Console error after upgrade to 2.1.0

    Unsolved Technical Support
    1 Votes
    30 Posts
    1k Views

    @baris Which is exactly what I did ! Very odd, but pleased it's fixed, and hope everyone else can benefit from this. Thanks for all the help.

  • 0 Votes
    1 Posts
    203 Views

    Hi,

    We would like to add some CSS code to our forum, so that when someone is using ios in dark mode, our forum will run as "night mode"...

    We have this code, we have added some in it, but it is missing some key elements and it is not practical to copy paste whole night mode codes of the forum in it...

    so is there a code that you can suggest, so when people use dark mode, it will activate regular night mode function of the forum?
    Thanks...

    @media (prefers-color-scheme: dark) { body { ... } }
  • 0 Votes
    5 Posts
    1k Views

    Yup you are right.. I did a search for my changes prior to upgrading and my search brought me to \public\templates\partials\post.tpl file instead of the one in the persona theme..

    I just made the changes in the theme folder and everything looks good again.

    Thanks for your help

  • 0 Votes
    3 Posts
    1k Views

    ok . thanks a lot