JPGraph on E-Rice?

I took the plunge today and installed JPGraph according to the excellent instructions provided by Tim Hanko. I’ve gone over everything several times and cannot get it to work. Just using the basic package and calling one of their examples I get the error message below. Comments in the E-Rice forum also lead me to believe that TrueType support is not installed there, and info on the JPGraph forum indicates that it’s absolutely required.

So, if anyone has been able to use this package on E-Rice servers, please let me know what I’m missing. If not, I guess I’ll have to pack it in.

Thanks. - Jim


don’t use TIFF image format? Use PNG or GIF perhaps.

I don’t think I was trying for a TIFF and their documentation indicates it’ll default to .png.

  • Jim

Added: Oh, I see you were referring to the TTF in the error message. I took that to be TrueType Fonts.

I got this example http://www.realweatherstation.com/src/Examples/accbarex1.php to work on e-rice.

Thanks Niko,

Now I know it must be something I’ve done. Back to the code.

  • Jim

Which version did you install?

Tom’s www.carterlake.org is on e-rice and has jpgraphs Carter Lake, Iowa Weather Daily Statistics

Niko,

I tried the same one as you mentioned and it works fine. I had picked bkgimgflagex4.php at random to try and it fails. Apparently some absolutely require TTF while others don’t. At least now I know where I stand, but I was really hoping to use Broadstairs’ package and they require it.

Thanks. - Jim

Sorry about that… I thought the error was saying TIF… not TTF

I see, it should be possible to get around that but I’m not expert enough. Tom’s graphs look fine.

You can make it work if you play with the fonts, in the case of bkgimgflagex4.php for a quick test I just changed the FF_ARIAL to FF_FONT1 and here it is on e-rice

http://www.realweatherstation.com/src/Examples/bkgimgflagex4.php

Thanks for that Niko, there’s light at the end of the tunnel. Now I’ve got something to do while waiting for next spring and golf.

  • Jim

The use of internal fonts work without the need for the FreeType support but does limit the number of fonts you can use like some of the JpGraph examples.

I would think that E-Rice might entertain a feature request to add that function to PHP though.


It’s come up on the forum more than once, but has never gotten a favorable response.

Is it an open source thing, or does it cost $$$ ?

Remember this is $10/YEAR hosting.

It a free package that needs to be compiled and then linked when you compile the PHP package.

http://www.freetype.org/

Yeah, I asked for it on their forums but didn’t get a yes or no. It was just ignored.

Thanks for the info Kevin, I have opened a ticket.

http://discourse.weather-watch.com/p/206209

numbers 5,6,7,8 inthat massage

Jozef

I don’t think that is going to help since the error message indicated in the first posting was that support for TTF was not “compiled” into PHP. You need to recompile the PHP package to get that to happen.

I’ve not seen the output of something like phpinfo though so the error could have been erroneous.

:oops:
next time, put your glasses on your nose Jozef #-o