Problem With Database

Technical Support

Suggested Topics


  • Plugin Recent Cards Problem

    Moved Solved Technical Support
    0 Votes
    7 Posts
    254 Views

    Hi all, what version did you downgrade from? The newest is likely for v3 of NodeBB only

  • 0 Votes
    4 Posts
    1k Views

    PS for other users : What I did is :
    1° / Go in you admin panel, in Gestion > Users, and write/see the UID of the user(s) you want to set the reputation to 0

    2° / Go in a terminal, and write :

    # mongod > use <yourdatabase> > db.objects.update({_key: "user:<uid>"}, {$set: {"reputation": 0}}); > db.objects.update({_key: "users:reputation", value: "<uid>"}, {$set: {"score": 0}});

    That's it ! 🙂

  • 0 Votes
    8 Posts
    4k Views

    @zaasmi
    try this

    mongo -u "admin" --authenticationDatabase "admin" -p

  • 0 Votes
    10 Posts
    4k Views

    @julian But then I get the following, because it's not looking in the right place for the package.json:

    npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /usr/bin/nodebb/nodebb-plugin-btcsso/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/usr/bin/nodebb/nodebb-plugin-btcsso/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-05-16T09_24_17_811Z-debug-0.log
  • 0 Votes
    5 Posts
    2k Views

    In the end, here are the only changes (to the original theme) I did to successfully achieve what I wanted without bug:

    Change container to container-fluid in header.tpl to set the "default" format to fluid. For each page that I want to be non-fluid, wrap the whole ***.tpl into a <div class="container"></div>.
    For example I did this for category.tpl, topic.tpl, register.tpl and login.tpl.

    It works.