XLRstats dev.
Dev. Team
OS: Linux
Type: Home user
Gameservers: COD4, SmG
Posts: 248
Offline
 Support Specialty: XLRstats webfront
|
 |
« Reply #15 on: March 15, 2010, 02:53:38 AM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #16 on: March 15, 2010, 05:53:14 AM » |
|
Yay, installed lighttpd and got it running on port 81. Now I get an error! (which is better than not getting an error code at all) Try yourself: http://tbiclan.game-host.org:81/xlrstats/Fatal error: Cannot redeclare geoip_country_code_by_name() in /media/raid/www/xlrstats/lib/geoip.inc on line 347 Why is it even reading geoip: I've disabled it. root@A-srvr:/media/raid/www/xlrstats/config# cat statsconfig.php | grep geo $use_geoip = 0; $geoip_path = "/path/to/your/geoIP/";
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #17 on: March 15, 2010, 06:04:12 AM » |
|
Since I don't care about GEOIP, at least yet, I commented out this in xlrstats/lib/geoip.inc /* function geoip_country_code_by_name($gi, $name) { $country_id = geoip_country_id_by_name($gi,$name); if ($country_id !== false) { return $gi->GEOIP_COUNTRY_CODES[$country_id]; } return false; }
function geoip_country_name_by_name($gi, $name) { $country_id = geoip_country_id_by_name($gi,$name); if ($country_id !== false) { return $gi->GEOIP_COUNTRY_NAMES[$country_id]; } return false; } */ Now apache displays it correctly too!
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #18 on: March 15, 2010, 06:15:13 AM » |
|
I don't care about geoIP, but I do want the SIG module. I have php5-gd installed and it works (but xlrstats requirements say php4-gd) When I go here: http://tbiclan.game-host.org/xlrstats/sig/I get a bunch of random characters.
|
|
|
|
|
Logged
|
|
|
|
XLRstats dev.
Dev. Team
OS: Linux
Type: Home user
Gameservers: COD4, SmG
Posts: 248
Offline
 Support Specialty: XLRstats webfront
|
 |
« Reply #19 on: March 15, 2010, 07:06:39 AM » |
|
Can you check with phpinfo() that gd is enabled and it supports jpg?
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #20 on: March 15, 2010, 07:53:40 AM » |
|
It supports jpg... And it is GD 2 gd GD Support enabled GD Version 2.0 or higher FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.9 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled
|
|
|
|
« Last Edit: March 15, 2010, 07:56:49 AM by hardfang »
|
Logged
|
|
|
|
XLRstats dev.
Dev. Team
OS: Linux
Type: Home user
Gameservers: COD4, SmG
Posts: 248
Offline
 Support Specialty: XLRstats webfront
|
 |
« Reply #21 on: March 15, 2010, 12:38:15 PM » |
|
This looks like a serverside problem rather than xlrstats. However to make sure of this, could you test a simple code created with gd library? For instane something like the codes here.
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #22 on: March 15, 2010, 05:02:55 PM » |
|
OK, I found out that "The image "tbiclan.game-host.org/test.php" cannot be displayed because it contains errors". SO its a gd problem? I just installed GD by apt-get install php5-gd Posting on ubuntuforums... -> http://ubuntuforums.org/showthread.php?p=8973743EDIT: It works with some GD things and not with others - I'm using apt-get version of php5-gd
|
|
|
|
« Last Edit: March 15, 2010, 05:34:39 PM by hardfang »
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #23 on: March 16, 2010, 05:55:44 AM » |
|
OK, now I got all the examples to display correctly by compiling my own php5 and GD.
But I still get random looking characters when I go to my signature display. Now this is probably an xlrstats problem I think.
Please help
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #24 on: March 16, 2010, 06:06:15 AM » |
|
These are the errors I get: Remember I modified the geoip.inc file to comment out one of the functions that was causing problems. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /media/raid/www/xlrstats/lib/geoip.inc:502) in /media/raid/www/xlrstats/sig/index.php on line 8
Warning: include(languages/en.php) [function.include]: failed to open stream: No such file or directory in /media/raid/www/xlrstats/languages/languages.php on line 33
Warning: include() [function.include]: Failed opening 'languages/en.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /media/raid/www/xlrstats/languages/languages.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /media/raid/www/xlrstats/lib/geoip.inc:502) in /media/raid/www/xlrstats/sig/index.php on line 159
Warning: Cannot modify header information - headers already sent by (output started at /media/raid/www/xlrstats/lib/geoip.inc:502) in /media/raid/www/xlrstats/sig/index.php on line 160
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #25 on: March 16, 2010, 06:12:38 AM » |
|
If I install the GeoIP and enable it (and revert geoip.inc back to original), I get following errors on main page: Fatal error: Cannot redeclare geoip_country_code_by_name() in /media/raid/www/xlrstats/lib/geoip.inc on line 347
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #26 on: March 16, 2010, 06:51:39 AM » |
|
Oh and by the way if you want to see the errors - I have errors disabled on my production server port 80 - I have a lighttpd server running on port 81 for troubleshooting (not accessible publicly)
I got those errors from lighttpd.
Now I'm reverting all changes to my working thing (without sig, GEOIP fixed by my comment-out method, which isn't the best)
I think if I solve the GeoIP problem, everything will work.
|
|
|
|
|
Logged
|
|
|
|
XLRstats dev.
Dev. Team
OS: Linux
Type: Home user
Gameservers: COD4, SmG
Posts: 248
Offline
 Support Specialty: XLRstats webfront
|
 |
« Reply #27 on: March 16, 2010, 06:55:09 AM » |
|
I regret to say that, but the problem still seems to be related with your apache or php setup. Look at your phpinfo. Do you have geoip extension installed and enabled already maybe?
Again I recommend you trying Xampp. Or maybe you can try reinstalling Apache and PHP from scratch.
|
|
|
|
|
Logged
|
|
|
|
Jr. Member
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 23
Offline
|
 |
« Reply #28 on: March 16, 2010, 06:56:39 AM » |
|
OK, I got GeoIP working. Now I only get these errors (and its not just apache, its lighttpd too): Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /media/raid/www/xlrstats/lib/geoip.inc:502) in /media/raid/www/xlrstats/sig/index.php on line 8
Warning: include(languages/en.php) [function.include]: failed to open stream: No such file or directory in /media/raid/www/xlrstats/languages/languages.php on line 33
Warning: include() [function.include]: Failed opening 'languages/en.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /media/raid/www/xlrstats/languages/languages.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /media/raid/www/xlrstats/lib/geoip.inc:502) in /media/raid/www/xlrstats/sig/index.php on line 159
Warning: Cannot modify header information - headers already sent by (output started at /media/raid/www/xlrstats/lib/geoip.inc:502) in /media/raid/www/xlrstats/sig/index.php on line 160 In the xlrstats/sig/?id=1
|
|
|
|
|
Logged
|
|
|
|
XLRstats dev.
Dev. Team
OS: Linux
Type: Home user
Gameservers: COD4, SmG
Posts: 248
Offline
 Support Specialty: XLRstats webfront
|
 |
« Reply #29 on: March 16, 2010, 07:06:06 AM » |
|
http://tbiclan.game-host.org/phpinfo.phpsearch for geoip. I don't see anything about geoip in my debian and ubuntu servers. This maybe your problem.
|
|
|
|
|
Logged
|
|
|
|
|