Odd issue content is not shown in the category



  • hey guys, i'm running an odd issue, i cannot see the contents in my site:

    http://www.xxxx.com/user/admin <-- here i can seee the contents i made

    but when i go to homepage: http://www.xxx.com/

    and go on this category: http://www.xxx.com/category/16/announcements-feedback-suggestions

    where i put my announcements, it's lost



  • Do you changed anything in the Access Control of your Categories?
    Wrong rights for usergroups?



  • hey thanks, the problem is that even me the admin cant see them.

    i have the access and read checked im not sure what i've missed, i just recently moved to the latest version v0.5.x



  • 1

    Try stopping your nodebb and start ist with:
    ./nodebb watch
    Do you see your Posts now?

    2

    From which version do you updated.
    Upgrade Jumps are not meant to be.
    Eg you have to be on latest v0.4.x to jump to v.0.5.x.

    With your update, have you done a:
    ./nodebb upgrade
    to migrate the db schemas?



  • @termnml mate,

    i got this problem on watch:

    2014-11-20T15:01:18.422Z - error: TypeError: object is not a function
    at Object.Widget.init (/home/xxx/node_modules/nodebb-widget-essentials/library.js:44:3)

    i could see that my widget essential might not be the right version, what is the right version i could use?


  • Global Moderator

    @Solomon-Monotilla 0.1.2 if you're on 0.5.x of NodeBB



  • @a_5mith said:

    0.1.2

    hey mate thanks., ok how then can i download and apply that version?

    install npm just seem to download the same thing


  • Global Moderator

    @Solomon-Monotilla npm install nodebb-widget-essentials@0.1.2



  • @a_5mith Thanks, but my issue still persists on having the contents not shown.


  • Global Moderator

    Have you previously installed master and then gone back to 0.5.x by any chance? As master and downgrading to 0.5.x isn't possible.

    You also may have an issue with your proxy configuration. As my IP comes back as 127.0.0.1, and it claims I'm not logged in, when I am. Can you paste the contents of your nginx or apache config block? You can blank out any personal bits like server IP address etc.



  • @a_5mith hey mate here:

    server {
    listen 80;
    server_name anirole.com;
    return 301 http://www.anirole.com$request_uri;
    }

    server {
    listen 80;

    server_name www.anirole.com;
    
    location / {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
    

    }

    also i think im using master:

    You are running NodeBB v0.5.4.
    You are up-to-date


  • Global Moderator

    You're running latest stable. Master is currently 0.6.0.

    Try setting your proxy_pass to the IP Address of your server, not 127.0.0.1. That will help with a few of the issues I spotted.

    If you installed nodebb without specifying -b v0.5.x in your clone command. Then you will have downloaded master, if you then downgraded back to v0.5.x, then this issue can happen and the upgrade procedure between 0.6.x and 0.5.x aren't compatible.



  • @a_5mith hi thanks mate, i ddnt meat to be spoon fed but im pretty new nodebb user. how can i git the master ? i was following this doc:

    https://docs.nodebb.org/en/latest/upgrading/index.html

    $ git fetch # Grab the latest code from the NodeBB Repository
    $ git checkout v0.4.x # Type this as-is! Not v0.4.2 or v0.4.3, but "v0.4.x"!
    $ git merge origin/v0.4.x


  • Global Moderator

    @fr3em1nd No problem, that's for upgrading, what did you use to initially install NodeBB? Was it this?

    git clone https://github.com/NodeBB/NodeBB.git nodebb

    Unfortunately, I can't recommend updating to master, as their will be issues, but you're welcome to give it a go, as I suspect that you initially installed master, then downgraded back to 0.5.x. So there's not a whole lot you can do except re-upgrade.

    As you have made changes to your themes, you may need to back up your theme, then add it back in afterwards.

    git checkout master
    git pull
    ./nodebb upgrade

    You will need to update all your plugins to the @latest version for them to work in master, and some may not have been updated yet. So your mileage will vary. 👍



  • @a_5mith said:
    hey mate i've done everything

    root@xx:/home/xx# git clone https://github.com/NodeBB/NodeBB.git nodebb
    fatal: destination path 'xx' already exists and is not an empty directory.
    root@xx:/home/xx# git clone https://github.com/NodeBB/NodeBB.git
    Cloning into 'NodeBB'...
    remote: Counting objects: 58675, done.
    remote: Compressing objects: 100% (51/51), done.
    remote: Total 58675 (delta 22), reused 0 (delta 0)
    Receiving objects: 100% (58675/58675), 19.26 MiB | 38.21 MiB/s, done.
    Resolving deltas: 100% (41277/41277), done.
    Checking connectivity... done
    root@xx:/home/xx# sudo git checkout master
    error: Your local changes to the following files would be overwritten by checkout:
    bcrypt.js
    Please, commit your changes or stash them before you can switch branches.
    Aborting
    root@xx:/home/xx# sudo
    usage: sudo [-D level] -h | -K | -k | -V
    usage: sudo -v [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid]
    usage: sudo -l[l] [-AknS] [-D level] [-g groupname|#gid] [-p prompt] [-U user name] [-u user name|#uid] [-g groupname|#gid] [command]
    usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid] [-g
    groupname|#gid] [VAR=value] [-i|-s] [<command>]
    usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-D level] [-g groupname|#gid] [-p prompt] [-u user name|#uid] file ...
    root@txtmyt:/home/anirole# sudo git checkout master -f
    Switched to branch 'master'
    root@txtmyt:/home/anirole# git pull
    remote: Counting objects: 51, done.
    remote: Compressing objects: 100% (51/51), done.
    remote: Total 51 (delta 22), reused 0 (delta 0)
    Unpacking objects: 100% (51/51), done.
    From git://github.com/NodeBB/NodeBB
    d5453ef..fdf06c0 master -> origin/master
    Updating d5453ef..fdf06c0
    Fast-forward
    src/middleware/index.js | 29 ++++++++++-------------------
    src/middleware/middleware.js | 49 ++++++++++++++++++++++++++-----------------------
    src/middleware/ratelimit.js | 35 +++++++++++++++++++++++++++++++++++
    src/posts.js | 2 +-
    src/routes/authentication.js | 2 --
    src/routes/index.js | 2 +-
    src/socket.io/index.js | 88 +++++++++++++++++++++-------------------------------------------------------------------
    src/socket.io/meta.js | 15 ++++++---------
    src/socket.io/posts.js | 10 ++--------
    src/socket.io/topics.js | 4 +---
    src/socket.io/user.js | 8 --------
    src/threadTools.js | 2 --
    src/upgrade.js | 44 +++++++++++++++++++++++++++-----------------
    src/user.js | 6 ------
    src/views/admin/header.tpl | 22 ++++++++++------------
    15 files changed, 140 insertions(+), 178 deletions(-)
    create mode 100644 src/middleware/ratelimit.js
    root@xx:/home/xx# ./nodebb upgrade
    npm WARN package.json nodebb-plugin-dbsearch@0.0.15 No repository field.
    npm WARN package.json reds@0.2.4 No repository field.


  • Global Moderator

    @fr3em1nd You didn't need to reclone nodebb. You may now have two seperate installs of NodeBB on your server, can you go back a directory cd ../ then type ls, what folders do you see?



  • @a_5mith said:

    ls

    i see that's interesting, i havnt thought of that here:

    app.js
    bcrypt.zip
    CONTRIBUTING.md
    LICENSE
    logs
    nodebb
    node_modules
    pidfile
    README.md
    tests
    bcrypt.js
    config.json
    install
    loader.js
    minifier.js
    NodeBB
    package.json
    public
    src


  • Global Moderator

    @fr3em1nd Ok, do cd ../ again, then ls again. I suspect you'll have two nodebb folders. One called NodeBB and another called nodebb



  • @a_5mith ah i think i know what you mean mate, i overwritten the existing folder.

    i did this:

    git clone https://github.com/NodeBB/NodeBB.git


  • Global Moderator

    Do you have two Nodebb folders in your xx directory?


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.