Posts: 215
Threads: 61
Joined: May 2008
Reputation:
0
Hello, i need some help with sourcebans! If i ban players ingame they dont show up on sourcebans, and if i ban them at sourcebans and then go to banlist i get this error : Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 4097 bytes) in /var/www/sourcebans/includes/system-functions.php on line 689
Anyone know what to do?
And bans ingame doesnt show up at sourcebans, so there is a bug somewhere!
Ubuntu
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
that memory problem can be solved by allowing more ram for your php scripts. edit /etc/php/apache2/php.ini (the path might differ slightly, like php5 instead of php...) and look for the memory_limit variable. it will be at 16M at the moment, increase it e.g. to 32M.
why don't you want to ask at the sourcebans forums? they will actually be able to help you better...
Posts: 779
Threads: 5
Joined: Apr 2008
Reputation:
9
Did you add the server_ID to both the sourcebans.cfg (located in the addons/sourcemod/configs/sourcebans folder) and the server's admin panel?
Warning Level: 0%
Posts: 215
Threads: 61
Joined: May 2008
Reputation:
0
12-12-2010, 10:22 AM
(This post was last modified: 12-12-2010, 10:39 AM by terry94.)
servers admin panel? :/ i added in the sourcebans folder and on the admin panel at sourcebans at my homesite
should it be server_id -1 for 1 and -2 for two? :/
"Databases"
{
"driver_default" "mysql"
"sourcebans"
{
"driver" "mysql"
"host" "localhost"
"database" "sourcebans"
"user" "root"
"pass" "*****"
//"timeout" "0"
"port" "3306"
}
"storage-local"
{
"driver" "sqlite"
"database" "sourcemod-local"
}
}
Is there anything wrong in this one? This is the one i have on my database file and on the webserver
Posts: 779
Threads: 5
Joined: Apr 2008
Reputation:
9
12-12-2010, 07:48 PM
(This post was last modified: 12-12-2010, 07:51 PM by Arjen.)
It should be "1" for both webserver and gameserver. Maybe you should delete "sqlite" and "sourcemod-local". You're using msql.
Warning Level: 0%