PHP Classes

Problem with running Graidle library

Recommend this page to a friend!

      Graidle  >  All threads  >  Problem with running Graidle library  >  (Un) Subscribe thread alerts  
Subject:Problem with running Graidle library
Summary:not able to run Graidle library
Messages:2
Author:Honza
Date:2011-07-14 11:59:24
Update:2011-07-14 22:13:03
 

  1. Problem with running Graidle library   Reply   Report abuse  
Picture of Honza Honza - 2011-07-14 11:59:24
Hello, I am not able to run Graidle. I have tried to run it on Win7 and also on Ubuntu. I have this GD library version - bundled (2.0.34). When I try to run the example from tutorial I get this message:


Warning: imagefttext() [function.imagefttext]: Invalid font filename in D:\........\htdocs\graidle\graidle.php on line 356

Strict Standards: Non-static method Line::drawLine() should not be called statically, assuming $this from incompatible context in D:\...........\htdocs\graidle\graidle.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at D:\..............\htdocs\graidle\graidle.php:383)

Am I missing something ?

Thank you for your help

  2. Re: Problem with running Graidle library   Reply   Report abuse  
Picture of Daniel Jaeger Daniel Jaeger - 2011-07-14 22:13:03 - In reply to message 1 from Honza
Hi Honza,

take a look ath the line 356 in graidle.php there should be a 7th parameter "fontfile" - like seen in the documentation: http://php.net/manual/de/function.imagefttext.php
Have a look if the Font file exists at the given location. You can also copy a ttf font file at to some dir and set the parameter to this file.

The second error could be solved if you change on line 164 the Line::drawLine() to a
$line = new Line();
$line->drawLine();

But this is just a blind guess ... haven't looked at that code for a year or two.

Cheers
Daniel