-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set property 'user' of undefined on login page #3489
Comments
This may en issue with passport 0.2.1 to 0.3.0 upgrade. There is also an issue with async@'^0.9.0' since update ( WARN on NPM ) but i don't think this is the origin of the issue. Try to watch diff from passport 0.2.1 to 0.3.0 Best Regards |
Please look at this: Cordially |
Mehdi, please show us the entire stack trace, as the error itself does not tell us where the problem originates. |
Also report your commit hash ( |
Commit Hash : 7210ffd best regards |
There is no errors in log file. |
Fixed strangely by thoses lines of code: // remove all node_modules Lines of code: Related about nodebb upgrade command that sometimes doesn't do the job correctly after pulling and launching upgrade commande. You can close this issue, i think. |
good good, thanks for confirming that it is resolved! |
Thanks @julianlam |
@julianlam I'm currently encountering this problem on the NodeBB community. Cannot login thought. |
Due to the impact of this (and the assumption that 403 response-code prevents it from being noticed by you guys yet) I'll additionally ping @barisusakli and @psychobunny 😉 |
@frissdiegurke Have you try to execute the lines of codes previously pasted in this issue that fix this bug to my environement. Try this @the root of your nodebb ( where the folder node_modules is): Best Regards, Ps: if you can't fix this issue with it please paste your commit hash and stack trace of your error. @julianlam If @frissdiegurke fix it with those commands, can you add to the wiki the solve that i have providen as a known issue that could be fixed by clearing and re-install node modules. |
@maissani A bit of misunderstanding here: I'm trying to login into https://community.nodebb.org and that fails. So it's up to @julianlam @barisusakli or @psychobunny to fix their dependencies. |
@frissdiegurke It's odd as I cannot reproduce this on the community forum. Logged out and logged back in with no issues. |
weird. I just tried with another browser and my second account, but both failed with the issue. |
@frissdiegurke No need, reproduced in incognito, oddly. |
In the meantime, I overrode the forum's A workaround until we can properly resolve the issue. |
This blocks the next version of NodeBB from launching. |
This is no longer blocking NodeBB launch. Installs with the 2factor plugin will run into issues as it depends on an old version of passport, so that's waiting on jaredhanson/passport-totp#5 to be merged. |
Fixed in NodeBB/nodebb-plugin-2factor@ed5b02f |
Same issue for me, the (sadly usual with npm, ie removing node_modules) procedure did the trick. We are also developing a node app, and encountering the same general problems with npm. Happy to see we are not alone ;) Keep up the good work on NodeBB! |
After upgrade when someone try to login into nodebb.
If the user and password match node bb will display :
Cannot set property 'user' of undefined
Tried it with a couple of themes including the default one.
This break the login feature.
Cordialy,
Mehdi Aissani
The text was updated successfully, but these errors were encountered: