[Solved] Register/Login links do not disappear when logged in
-
Found out it happens only when I run it as a service (using the windows-service node package), although that worked fine with the earlier version of nodebb I used before. When I run it as a service I get "Uncaught ReferenceError: require is not defined " in the browser. Could that be related to websockets?
-
windows-service needs a little startup code ala:
var logStream = fs.createWriteStream(process.argv[1] + ".log"); service.run(logStream, function() { service.stop(0); });
The resulting app.log file contains no errors, just the usual startup infos. The logs subdir stays empty.
-
I am experiencing this on my development instance as well. I thought it must be because of some other issue so I never investigated, but apparently I'm not alone I'm running it with
node app.js
though. -
Hmmm, or maybe not really. The buttons on the top-right now look correct but don't do anything. Also still getting the "require not defined" error. But I'm now on 0.43. In 0.42 it kind of worked correctly once after updating the themes after an unusually long delay. Maybe that happened randomly, but I can go down to 0.42 again and recheck if it helps.
-
I've just updated and we have the login and register buttons even when we have logged in. I'm not sure if this is a theme issue with sea wolf or if it's a nodebb issue. SeaWolf is based off Vanilla so if any chnages happen in the vanilla theme then they should propagate over to my theme.
-
@julian said:
@Scuzz Beats me as to why.
npm i nodebb-theme-vanilla
installs0.0.19-35
instead of-53
. Not sure if that is still the case, but I updated the package.json file in the v0.4.x branch which might resolve this.npm i nodebb-theme-vanilla
still installs0.0.19-35
, usingnpm i [email protected]
installed the correct one for me -
Ok, after a
./nodebb upgrade
everything seems to be working correctly again.It might be worth keeping the latest npm version of themes compatible with the stable version of nodebb. Keeping the newer versions of the themes github only so people can use them if they want.
I think this may stop any confusion when upgrading themes.