Posts: 28
Threads: 7
Joined: Sep 2016
Reputation:
0
I have set up my server on streamline servers hosting, everything seems to be working fine except the user saving system. The server creates a user file like it should but does not save anything inside it, making the file blank. Im using all the exact same files and configuration on this hosting as Im using on my localhost, where the saving system works perfectly fine. Im not sure what could be the issue. Thanks.
Posts: 28
Threads: 7
Joined: Sep 2016
Reputation:
0
Forgot to mention - all plugins/includes are there and they are working fine.
Posts: 579
Threads: 5
Joined: Oct 2015
Might be a permission issue, double check the scriptfiles folder permissions. Also, is it a shared host (aka game server hosting) or a VPS?
Posts: 28
Threads: 7
Joined: Sep 2016
Reputation:
0
Also configured the permissions already. It is game server hosting.
Posts: 579
Threads: 5
Joined: Oct 2015
Which INI system do you use? Are you sure the code isn't crashing after the file is created for some reason? (check with debug lines if you aren't sure)
Posts: 28
Threads: 7
Joined: Sep 2016
Reputation:
0
Y_Ini. Checked, not crashing. I tried saving just one line on player disconnect, still does not write anything to the file.
Posts: 579
Threads: 5
Joined: Oct 2015
What's your saving path (for scriptfiles folder) that you use with y_ini open function please?
Posts: 579
Threads: 5
Joined: Oct 2015
Quote:
Originally Posted by matje
Код:
#define USER_PATH "/Users/%s.ini"
|
This might be the issue, try removing the first slash, so it becomes:
PHP код:
#define USER_PATH "Users/%s.ini"
The reason is, Linux systems handle the trailing / differently, in Linux the path becomes
/Users/whatever.ini when there's a trailing slash while it's supposed to be
/path/to/scriptfiles/Users/whatever.ini.