[Solved] Register/Login links do not disappear when logged in
-
Hi again!
Next one, same disclaimer: I upgraded a nodebb instance from a version I downloaded from git at the first of March to version 0.4.2. It's running on Windows using Mongo.
When I log in to the forum, I'm not forwarded to a proper webpage. Instead it just says "[[success:authentication-successful]]". When I manually reload the forum I'm logged in though. But the Register and Login links at the top-right stay there, when I click them they take me to the user configuration. -
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