theChaosCoder / player_analytics

Update to player_analytics webpanel
25 stars 4 forks source link

JSON issues & FileCache warning #20

Open Wolfseye opened 6 years ago

Wolfseye commented 6 years ago

inkedinkedchrome_2018-01-27_02-44-36_li

firefox_2018-01-27_02-42-07

See more in the Forum:

https://forums.alliedmods.net/showpost.php?p=2574370&postcount=336

I would appreciate any help. Thank you.

theChaosCoder commented 6 years ago

It's a configuration problem on your end. You need to allow write permission for the folder /cache/SQL.

theChaosCoder commented 6 years ago

There are many tuts out there for this. But for a quick test you could try to change the cache location

From FileSystemCache::$cacheDir = $dir.'/../cache'; To FileSystemCache::$cacheDir = '/tmp/player_analytics';

in app.php https://github.com/theChaosCoder/player_analytics/blob/master/inc/app.php#L34

Wolfseye commented 6 years ago

Thanks, the first reply solved it all. Funny was just, there was no cache folder. And I didnt read that there had to be one in any of the documentation. Now its solved, both issues. ;)

theChaosCoder commented 6 years ago

Perfect. There was no folder, because it couldn't create one ;-)

Wolfseye commented 6 years ago

Although now that I installed the plugin on multiple on my Servers, i notice that it works as in players etc is counted. Although it still says in the list of Servers only one server, the one i tested it with internally last night. So that IP / Port is in the list. Why, now that it is running on multiple servers, and multiple players already playing with the plugin running, are the other server ips not listed yet ? Any idea maybe ?

Wolfseye commented 6 years ago

In those colored fields, it now say 4 Servers, but in that drop down list, there is still only the one. Does it take time for a server to get in there ?

theChaosCoder commented 6 years ago

try to delete all cache files

theChaosCoder commented 6 years ago

I'm pretty sure that I cache the servers ips since it is an expensive query on large DBs. I had over 4mio entries.

Wolfseye commented 6 years ago

Cant get rid of the cache files because they have different user/permission on FTP since they were created by the script. And if I change owner permission of that folder, I am not sure if it still works with the writing the cache. So far in the pull down menu, its still only 1 server. On the colored fields, all the servers are now correctly counted.