Raised This Month: $51 Target: $400
 12% 

Graphs not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-07-2013 , 19:27   Graphs not working
Reply With Quote #1

None of the graphs are working for me. They're just empty and transparent, like something is supposed to be there, but it's not (you can see the background in their rectangle).

I searched and searched, but I can't find a solution. Can anybody help me with this?

I attached an example of how it looks.
Attached Thumbnails
Click image for larger version

Name:	buubu.jpg
Views:	275
Size:	58.8 KB
ID:	116764  
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-10-2013 , 16:35   Re: Graphs not working
Reply With Quote #2

Nobody? This is a pretty tough one. I have absolutely no starting point. My only chance is to browse through the entire code and try to see how the graphs are generated and how the data is received... and that is really really boring
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2

Last edited by SINEKT; 03-10-2013 at 16:35.
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 03-11-2013 , 00:02   Re: Graphs not working
Reply With Quote #3

Webhost is windows or linux? Seems PHP GD2 module is missing in your installation. Also check if your 'progress' folder inside hlstatsximg is writable.
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-11-2013 , 04:42   Re: Graphs not working
Reply With Quote #4

Linux. There is GD2 also? I recompiled PHP with GD, didn't know there's also GD2... progress folder is writable.

P.S.: phpinfo() says GD Version bundled (2.0.34 compatible). Is this ok, or I need something else?
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2

Last edited by SINEKT; 03-11-2013 at 04:44.
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 03-11-2013 , 16:10   Re: Graphs not working
Reply With Quote #5

Show me some error logs from webhost. Let's see what is causing it.
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-12-2013 , 07:58   Re: Graphs not working
Reply With Quote #6

I am the host. Thanks for the logs idea, found the problem, I had to add date_default_timezone_set to the php file that is generating the graphs.
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 03-13-2013 , 16:59   Re: Graphs not working
Reply With Quote #7

Quote:
Originally Posted by SINEKT View Post
I am the host. Thanks for the logs idea, found the problem, I had to add date_default_timezone_set to the php file that is generating the graphs.
That's great you found the problem.
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-15-2013 , 02:26   Re: Graphs not working
Reply With Quote #8

Player trend graph still doesn't work, but from what I see in the logs, it may be because I don't have GD with Freetype support. I am currently struggling to recompile my PHP with GD with freetype, but somewhere I fail miserably. I downloaded GD, did the config and make/make install, with freetype config option, but I can't use it to recompile PHP. I think PHP takes it's own GD when compiling, and if I give the path where I manually installed my own GD version, it stops with an error saying that some files can't be found there.

I'm currently confused... I have to sleep a bit now, I'll try to figure this out later today.
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-19-2013 , 14:39   Re: Graphs not working
Reply With Quote #9

I managed to solve it, but please, OH PLEASE, don't ask me how. I just recompiled PHP with the same options I tried before, and now I have GD with freetype support. Crazy stuff...

EDIT: New problem. Take a look at how the text on the player trend graph looks:
Attached Thumbnails
Click image for larger version

Name:	trend.jpg
Views:	181
Size:	21.7 KB
ID:	117308  
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2

Last edited by SINEKT; 03-19-2013 at 15:01.
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
SINEKT
Member
Join Date: Oct 2006
Location: Bucharest, Romania
Old 03-24-2013 , 10:40   Re: Graphs not working
Reply With Quote #10

Nailed it! For some weird reason, the PNG image has some transparent areas on the text. It was as simple as changing the color of the graph DIV to white.
__________________
Home datacenter madness - kitchen servers:

Photo 1 Photo2
SINEKT is offline
Send a message via Yahoo to SINEKT Send a message via Skype™ to SINEKT
Reply



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 05:12.


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