@baris said in Unable to chat:
account/new-chat
Thanks! that was it, I had some custom css that hid the 2nd item in the dropdown menu. That also explains why it worked with the new DB since the custom css was no longer there.
Fairly new to NodeBB. Just got one site up with PostgreSQL as the backend.
Initially version 1.5.1 was installed which has been upgraded to ver 2.8.2 a few days ago.
It is still running in dev mode, so I only got one user registered from the initial installation. Now I am not able to register any new user.
Every time I try, I get an error message:
Registration Error
We were unable to log you in, likely due to an expired session. Please try again
On the console, I see logs like this:
2023-01-24T06:51:40.275Z [4567/73890] - error: POST /register
invalid csrf token
At this point, I don't know how to proceed. Any help would be greatly appreciated.
Have you tried clearing cookies?
@PitaJ - Yes, I have. Tried different browsers, private windows, etc. No luck.
@phenomlab - I think the cookieDomain setting may be what I need. Could you please be more specific? Do I need to clear that setting (as shown in your linked post)? Or set it specifically to my domain? I ask because the current setting seems to be empty (not set to anything.)
Thank you both for your responses.
@ww9rivers It needs to be executed against the production database you are using - however, the code provided is for MongoDB, so I am almost positive there will be an alternative you'd need to use for Postgres. Perhaps @baris or @julian can assist with this part.