PHP Classes

Multiple PHP errors running example.php

Recommend this page to a friend!

      Gantt Chart Class  >  All threads  >  Multiple PHP errors running example.php  >  (Un) Subscribe thread alerts  
Subject:Multiple PHP errors running example.php
Summary:The examples dont run out of the box, need help
Messages:7
Author:Sebastian Scholle
Date:2006-06-05 07:56:48
Update:2007-03-26 08:26:54
 

  1. Multiple PHP errors running example.php   Reply   Report abuse  
Picture of Sebastian Scholle Sebastian Scholle - 2006-06-05 07:56:48
Hi,
when i try try and run the examples that were supplied with this package, i seem to get multiple PHP errors/warnings.

Example:
--------
Notice: Use of undefined constant END_TO_START - assumed 'END_TO_START' in c:\program files\apache group\apache\htdocs\intranet\overview\example.php on line 77

Notice: Use of undefined constant START_TO_START - assumed 'START_TO_START' in c:\program files\apache group\apache\htdocs\intranet\overview\example.php on line 78

Notice: Use of undefined constant END_TO_END - assumed 'END_TO_END' in c:\program files\apache group\apache\htdocs\intranet\overview\example.php on line 79

Notice: Use of undefined constant START_TO_END - assumed 'START_TO_END' in c:\program files\apache group\apache\htdocs\intranet\overview\example.php on line 80

Notice: Use of undefined constant END_TO_START - assumed 'END_TO_START' in c:\program files\apache group\apache\htdocs\intranet\overview\example.php on line 196

Notice: Use of undefined constant END_TO_END - assumed 'END_TO_END' in c:\program files\apache group\apache\htdocs\intranet\overview\example.php on line 228

---------
End Example

Can you please show me in the right direction to get this class working.

Thanks

  2. Re: Multiple PHP errors running example.php   Reply   Report abuse  
Picture of Matt Powell Matt Powell - 2006-09-16 07:32:21 - In reply to message 1 from Sebastian Scholle
You need to install the GD2 extension, you might also need to install PHP 5

  3. Re: Multiple PHP errors running example.php   Reply   Report abuse  
Picture of Alexandre Miguel de Andrade Souza Alexandre Miguel de Andrade Souza - 2006-09-27 19:25:13 - In reply to message 1 from Sebastian Scholle
I have tested it at a php4 enviroment, (and maybe 5.0) and works well.
Now, I have tested at php5.1, and give that errors.
try use at php4, for while, or even php5.0
I'm tryng to fix the errors to work with a php5.1 enviroment.

  4. Re: Multiple PHP errors running example.php   Reply   Report abuse  
Picture of Matt Powell Matt Powell - 2006-09-27 20:32:27 - In reply to message 3 from Alexandre Miguel de Andrade Souza
I'm running PHP 5.1.4 and it works great! The post above I meant for someone else.

P.S. Great work...Is there anyway you can get it to exclude weekends. Or tell me where I should look or if you have any ideas about it (...excluding weekends)!

Thank you

Matt

  5. Re: Multiple PHP errors running example.php   Reply   Report abuse  
Picture of hedi hedi - 2006-10-10 07:21:56 - In reply to message 3 from Alexandre Miguel de Andrade Souza
im in php5
???
do you have a solution ??. THINKS

Notice: Undefined index: title in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 675

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: milestone in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 228

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 278

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 279

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 280

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 282

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 255

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 256

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 257

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 258

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 259

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 260

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 261

Notice: Undefined index: in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 262

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 278

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 279

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 280

Notice: Undefined variable: definitions in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 282

Notice: Undefined variable: planned in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 348

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 690

Notice: Undefined index: ttfont in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 691

Notice: Undefined index: filename in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 717

Notice: Undefined index: wbmp_foreground in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 725

Warning: Cannot modify header information - headers already sent by (output started at E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php:691) in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 745

Notice: Undefined variable: filename in E:\hedi\works_hedi\gantt-2005-12-23\gantt.class.php on line 746

  6. Re: Multiple PHP errors running example.php   Reply   Report abuse  
Picture of Alexandre Miguel de Andrade Souza Alexandre Miguel de Andrade Souza - 2006-10-19 10:16:04 - In reply to message 5 from hedi
you have to configure php to NOT show NOTICE warnings

error_reporting(E_ALL ^ E_NOTICE);

  7. Re: Multiple PHP errors running example.php   Reply   Report abuse  
Picture of Wan Saiful Azrin Abdullah Wan Saiful Azrin Abdullah - 2007-03-26 08:26:54 - In reply to message 6 from Alexandre Miguel de Andrade Souza
i'm using php5.2 and i received this error when running example.php

Fatal error: Class 'gantt' not found in C:\wamp\www\gantt\example.php on line 273