samerton / NamelessMC

A complete Minecraft-related PHP website package. Please note this is an old repository, a link to the new repo is in the readme
https://github.com/NamelessMC/Nameless
MIT License
39 stars 17 forks source link

Problem signing in #71

Closed ChanceSD closed 8 years ago

ChanceSD commented 8 years ago

I followed all the steps to install but when it asks me to re-authenticate in the end, it just doesn't work. I'm very sure i entered the right username and password but when clicking sign in, just nothing happens, page reloads but doesn't sign me in.

The problem might be i'm using nginx, how do i convert your htaccess file into a nginx config? Currently i'm using this:

if (!-f $request_filename) { rewrite ^(.*)$ /index.php?a=$uri; }

samerton commented 8 years ago

There's an example configuration for nginx in the new version 1.0 repository. Try this and see if it helps.

ChanceSD commented 8 years ago

Tried that but still same problem, maybe it's not an issue with nginx. Guess i will try version 1.0 and see how it works.

samerton commented 8 years ago

I've not been able to reproduce this issue at any point, however it may be a new error. Trying 1.0 might be a good idea, hopefully it's not present there.

ChanceSD commented 8 years ago

Tried 1.0, got a similar error but this time everything installed fine, the website shows up and everything. However, when logging in i get "Invalid token, please try again". Tried going on forgot password but entering my username also gives an error.

samerton commented 8 years ago

Would you be able to send me a link to your website?

ChanceSD commented 8 years ago

Here: http://kabucraft.servegame.com/

samerton commented 8 years ago

Seems as though your web server isn't storing session data for some reason. This could be down to the directory that PHP uses to store session data not being writable.

In order to see whether this is the case you'll need to do the following: Add the following code to the very bottom of core/includes/template/navbar.php:

if (!is_writable(session_save_path())){ echo '
Your session path ' . session_save_path() . ' is not writable.'; }

Does an error message appear at the top of your page?

ChanceSD commented 8 years ago

Thank you very much! That fixed it, it was /var/lib/php which had group set to apache if anyone ever gets the same issue.