Raised This Month: $32 Target: $400
 8% 

Player trend graph


Post New Thread Reply   
 
Thread Tools Display Modes
LuaStoned
New Member
Join Date: Nov 2012
Location: Austria
Old 02-25-2013 , 12:27   Re: Player trend graph
Reply With Quote #11

Having the same issue, plus the error thrown:
Quote:
[Mon Feb 25 12:20:21 2013] [error] [client ***] PHP Notice: Undefined offset: 0 in /var/www/show_graph.php on line 291, referer: http://***/hlstats.php
LuaStoned is offline
MUN
Senior Member
Join Date: Jan 2012
Location: Cali
Old 03-03-2013 , 01:43   Re: Player trend graph
Reply With Quote #12

in ~/hlstatsimg/ there is a folder called progress. This folder needs to be set to 777 as this is where the images are stored.

If that doesn't fix it you may have other issues. Like try install php5-gd.
__________________
MUN is offline
gondolf
New Member
Join Date: Mar 2013
Old 03-07-2013 , 00:03   Re: Player trend graph
Reply With Quote #13

Hi

Some days ago i had a similar issue, the problem it was because i didnt had installed php-gd on my server, so check for hlstatsx requirements if everything its ok.

Last edited by gondolf; 03-07-2013 at 00:07. Reason: wrong english
gondolf is offline
Noitartsiger
Member
Join Date: Jul 2011
Old 03-23-2013 , 07:52   Re: Player trend graph
Reply With Quote #14

Same issue here.


~/hlstatsimg/progress/ is set to 777
releasenotes say GD 2.0.1 is installed


Other graphs work fine, only the player trend graph is not created.




EDIT:
in trend_graph.php I find this SQL query:
Code:
SELECT UNIX_TIMESTAMP(eventTime) AS ts, skill, skill_change FROM hlstats_Players_History WHERE playerId = '$player' ORDER BY eventTime DESC LIMIT 30"
I assume this brings the basic data for the creation of the picture.
a) when I watch the table 'hlstats_Players_History' I got only 30 records (but have around 1000 active players) - shouldn't it be many more?
b) and I there is no culmn named 'ts'


Ok, although I can't fully understand the code, I guess it's fine, as it seems to work for others. So it's maybe something wrong with the web part, no?!


EDIT:
Alright in the top of the trend_graph.php it says:
Code:
// Load database classes
 require ('config.php');
 require (INCLUDE_PATH . '/class_db.php');
 require (INCLUDE_PATH . '/functions.php');
 require (INCLUDE_PATH . '/pChart/pData.class');
 require (INCLUDE_PATH . '/pChart/pChart.class');
I checked my installation and for some reasons the folder 'pChart' was missing ... -.-
That can be the cause. Now I will wait a few days and lets see if it works.

Last edited by Noitartsiger; 03-23-2013 at 09:16.
Noitartsiger is offline
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-24-2013 , 10:35   Re: Player trend graph
Reply With Quote #15

To have trend graphs working you need your PHP compiled with GD compiled with Freetype support. If you don't host the site on your own webserver, this can be tricky and you might need another host.

I am running HL Stats X on my own Linux webserver, and this was the problem, I needed GD with Freetype support enabled.

You can test this by making a php file like this:

<?
phpinfo();
?>

Save it on the webserver and then acces it from the browser, you should see a long table with all the details of PHP, and check the GD section, it should say "Freetype support: enabled". If you can't find Freetype under GD, or GD section at all, there's your problem!
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2

Last edited by SINEKT; 03-24-2013 at 10:38.
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
Noitartsiger
Member
Join Date: Jul 2011
Old 03-25-2013 , 09:49   Re: Player trend graph
Reply With Quote #16

Hi SINEKT, thx for your help!
I still have no player trend graphs.

I checked the phpinfo as you said:
Quote:
GD Support: enabled
GD Version: bundled (2.0.34 compatible)
FreeType Support: enabled
FreeType Linkage: with freetype
FreeType Version: 2.1.7
:/

Last edited by Noitartsiger; 03-25-2013 at 09:50.
Noitartsiger is offline
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-25-2013 , 14:05   Re: Player trend graph
Reply With Quote #17

My FreeType version is 2.4.11, if this helps. I searched for the latest package available and installed that. Also, check the webserver's error logs (Apache or whatever). Usually you find there the PHP function that doesn't work, and you have something to work with (google the error, and finding out how to remove the error).

You host HLStatsX on your own webserver?
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2

Last edited by SINEKT; 03-25-2013 at 14:08.
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
rZr
Member
Join Date: Aug 2006
Old 10-18-2015 , 06:30   Re: Player trend graph
Reply With Quote #18

i have a Problem with the Player trend graph. it is no show. chmod is all on 777

Error.log
PHP Warning: imagepng(./hlstatsimg/progress/trend_2358_1444428000.png): failed to open stream: Permission denied in /var/customers/webs/hlstats/includes/pChart/pChart.class on line 3231, referer: http://xxxx.xxxx.xx/hlstats.php?mode...fo&player=2358


have anyone a idea ?

Last edited by rZr; 10-18-2015 at 06:30.
rZr is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode