Page 1 of 1

Graphs not showing

Posted: 07 Jan 2016, 06:09
by abc123
Was able to set up and started populating the database but the graphs are not showing.
Kindly give me your suggestions to solve the problem?
Thanks.

Re: Graphs not showing

Posted: 07 Jan 2016, 11:29
by RussH
Hi,

this sounds like a missing package - can you install php-GD2 (or equivalent for your distro) please?

Russ

Re: Graphs not showing

Posted: 07 Jan 2016, 20:13
by abc123
hi, thanks... actually

i was using a free hosting site to try this out.. i dont think they have gd2 so what I did is...

1. i used wamp, checked gd2 was there in php extensions
2. i logged into http://localhost/opencats-0.9.1a
3. i right clicked on the graph, then selected view source
4. I clicked on index.php?m=graphs&a=miniPlacementStatistics&width=495&height=230 which is on line 106.
5. then this error showed up: Deprecated: Function split() is deprecated in C:\wamp\www\opencats-0.9.1a\lib\artichow\inc\Font.class.php on line 252
6. I changed split to explode on line 252 as well as on line 195

Then the graphs showed up!

But this is in my localhost.. do you or does anybody know a free hosting site which supports gd2?

Re: Graphs not showing

Posted: 07 Jan 2016, 23:17
by RussH
Thanks for that - could you submit an issue (and comment on the proposed fix) to the opencats github repo?

And on free hosts - I'd recommend running opencats on a digitalocean $5 / month droplet.. you can manage it and install whatever packages you want.

Russ/