You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2007-03-30 08:27:28

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

PLugin Project - Gantt graphics no works

Hello,
I have installed the plugin projet in our GLPI 0.68.3 installation.
I have add the gd.so extension in php.ini.
I have controlled and the gd.so extension is used by apache2 process and is OK.
I have controlled the nane of tasks and Project and are correct ( no ' or @ or () ).
But the gantt.php image is not created
Is possible that the system require other packages installation in my ubuntu6.06 server ?
thanks in advance for your reply


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#2 2007-03-30 08:40:09

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

chmod 777 /var/www/glpi/plugins/projet
chmod 777 /var/www/glpi/plugins/projet/front

?


Xavier Caillaud
Blog GLPI Infotel

Offline

#3 2007-03-30 09:03:33

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

Thanks for reply.
also theese are Ok.
Is possible that all directory ./project must have www-data as user and not root. I've see that the file gantt.php as created by this owner


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#4 2007-03-30 09:06:32

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

:-(
I've try to change the user to www-data all files in  directory ./projet but not compare gantt.php image.


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#5 2007-03-30 09:10:52

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

sudo apt-get install libgd2 and sudo apt-get install php5-gd ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#6 2007-03-30 09:17:49

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

I 've read the wiki guide and recontrolled every step and are OK.
But I don' know why it not works.

I've to install imagemagik for creating png ? Our installation on this server is very minimal ( only lamp) and I non want to try more because this is a production server  :-)
Thanks for replies


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#7 2007-03-30 09:41:55

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

no you don't need have other thing than gd2 - php - rights. if the plugin create gantt.php in front, so the plugin looks good. There is a problem with gd2 (no gd but gd2)


Xavier Caillaud
Blog GLPI Infotel

Offline

#8 2007-03-30 09:53:35

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

I believe that gd works ok
I've lauced this command on ors system  and the apache user lanch correctly the gd extension:
For the gd2 extension only libgd2 package is needed ?

phpinfo()
GD Support  enabled 
GD Version  2.0 or higher 
FreeType Support  enabled 
FreeType Linkage  with freetype 
FreeType Version  2.1.10 
T1Lib Support  enabled 
GIF Read Support  enabled 
GIF Create Support  enabled 
JPG Support  enabled 
PNG Support  enabled 
WBMP Support  enabled 

root@finhd01:/var/www/glpi/plugins/projet/front# lsof | grep gd | grep php

apache2   4322          root  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   4339 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   4343 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   4344 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   4345 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   5280 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   5281 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   5291 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   5293 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   5309 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so
apache2   5315 www-data  mem       REG        8,1    85900      99238 /usr/lib/php5/20051025/gd.so


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#9 2007-03-30 10:01:35

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

can you try to launch directly gantt.php ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#10 2007-03-30 10:06:40

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 941

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

this is resoult
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 955

Warning: Cannot modify header information - headers already sent by (output started at /var/www/glpi/plugins/projet/inc/gantt.class.php:941) in /var/www/glpi/plugins/projet/inc/gantt.class.php on line 1002
?PNG.......................


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#11 2007-03-30 10:46:03

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

A question.
I've to install true type fonts ? - If yes  Do you know the correct package?
thanks


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#12 2007-03-30 10:58:59

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

hum no tongue

waht is your mysql / php versions ?


Xavier Caillaud
Blog GLPI Infotel

Offline

#13 2007-03-30 11:00:46

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works


Xavier Caillaud
Blog GLPI Infotel

Offline

#14 2007-03-30 11:17:37

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

This is the result: seem the same :-(


Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/glpi/plugins/projet/front/test.php on line 7


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#15 2007-03-30 11:26:57

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

so you need freetype, i think..

http://www.freetype.org/


Xavier Caillaud
Blog GLPI Infotel

Offline

#16 2007-03-30 12:01:24

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

Iì've launc this for install apt-get install freetype2 and this is result
The following extra packages will be installed:
  libttf2
Suggested packages:
  libttf-dev freetype1-tools
The following NEW packages will be installed:
  freetype2 libttf2
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

but not works.
If I launch apt-cache search freetype this is the result.
Which is the correct package ?
can you help me?
thanks
Mariano
fontconfig - generic font configuration library
ftgl-dev - Library to render text in OpenGL using FreeType
libfreetype6 - FreeType 2 font engine, shared library files
libfreetype6-dev - FreeType 2 font engine, development files
libgd-gd2-noxpm-perl - Perl module wrapper for libgd - gd2 variant without XPM support
libgd-gd2-perl - Perl module wrapper for libgd - gd2 variant
libsdl-ttf2.0-0 - ttf library for Simple DirectMedia Layer with FreeType 2 support
libttf-dev - FreeType 1 development files (static library and headers)
libttf2 - FreeType 1, The FREE TrueType Font Engine, shared library files
libxft-dev - FreeType-based font drawing library for X (development files)
libxft2 - FreeType-based font drawing library for X
libxft2-dbg - FreeType-based font drawing library for X (unstripped)
scribus - Open Source Desktop Publishing
x-ttcidfont-conf - Configure TrueType and CID fonts for X
cjk-latex - A LaTeX macro package for CJK (Chinese/Japanese/Korean)
freetype1-tools - Bundled tests, demos and tools for FreeType 1
freetype2 - Dummy package for transition to libttf2
freetype2-demos - FreeType 2 demonstration programs
ftjam - A replacement for make
fttools - FreeType font utilities
fvwm - F(?) Virtual Window Manager, version 2.5
fvwm-gnome - F(?) Virtual Window Manager, version 2.5
libafterimage-dev - imaging library designed for AfterStep - development files
libafterimage0 - imaging library designed for AfterStep - runtime files
libcamlimages-ocaml - OCaml image processing library
libcamlimages-ocaml-dev - OCaml image processing library
libclan2c2a-ttf - TTF module for ClanLib game SDK
libcoin40c2 - high-level 3D graphics kit with Open Inventor and VRML97 support - runtime
libdirectfb-extra - extra image/video providers for libdirectfb
libft-perl - Perl module for the FreeType library
libotf-bin - A Library for handling OpenType Font - utilities
libotf-dev - A Library for handling OpenType Font - development
libotf0 - A Library for handling OpenType Font - runtime
libwftk-0.7c2a - WorldForge Toolkit - a C++ widget toolkit
libwftk-dev - WorldForge Toolkit - a C++ widget toolkit - development files
libwftk-doc - WorldForge Toolkit - a C++ widget toolkit - documentation
libxft1 - FreeType-based font drawing library for X (version 1)
lmodern - scalable PostScript fonts for european character sets
mknfonts.tool - Create nfont packages for GNUstep
mlterm - MultiLingual TERMinal
mlterm-tiny - MultiLingual TERMinal, tiny version
pointless - A presentation tool based on OpenGL
rxvt-unicode - RXVT-like terminal emulator with Unicode support
ttf2pt1 - A TrueType to PostScript Type 1 Font Converter
ttmkfdir - Utility used to create fonts.scale files for TrueType fonts
vflib3 - Versatile Font Library
vflib3-bin - Sample programs using VFlib3
vflib3-dev - Development files for VFlib3
vflib3-doc - Documentation for VFlib3
libpango1.0-0 - Layout and rendering of internationalized text
libpango1.0-0-dbg - The Pango library and debugging symbols
libpango1.0-common - Modules and configuration files for the Pango
libpango1.0-dev - Development files for the Pango


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#17 2007-03-30 12:21:47

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

Finally I have find the problem;

For using gd true type fonts is necessary to comment 2 lines in ./projet/inc/gantt.class.php

and exactly the line 68
//              if (!isset($definitions['title']['ttfont']['file'])) $definitions['title']['ttfont']['file']= './Arial.ttf'; // set path and filename of ttf
font -> coment to use gd fonts

and 74

//              if (!isset($definitions['text']['ttfont']['file'])) $definitions['text']['ttfont']['file']= './Arial.ttf'; // set path and filename of ttf fo
nt -> coment to use gd fonts


and now no other fonts are needed. I add this issue to wiki.
thanks for your help
Mariano


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#18 2007-03-30 12:23:19

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

thanks for the wiki smile


Xavier Caillaud
Blog GLPI Infotel

Offline

#19 2007-03-30 12:30:12

caimano68
Member
From: Italy
Registered: 2006-06-28
Posts: 130

Re: PLugin Project - Gantt graphics no works

I hope in future o add more wiki.
My time is very busy but this project is very very useful
thanks for your great job
Mariano


Glpi 0.84.8 - production  and testing - OCS 2.1.2  - Mysql 5 - Apache 2 - php5 - Ubuntu server LTS 14.04 LTS
Plugins:    behaviour, position, generic object, sim management, web services, projects _______________________________________________

Offline

#20 2007-03-30 18:53:23

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: PLugin Project - Gantt graphics no works

wink


Xavier Caillaud
Blog GLPI Infotel

Offline

Board footer

Powered by FluxBB