You are not logged in.
Pages: 1
Topic closed
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
chmod 777 /var/www/glpi/plugins/projet
chmod 777 /var/www/glpi/plugins/projet/front
?
Xavier Caillaud
Blog GLPI Infotel
Offline
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
:-(
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
sudo apt-get install libgd2 and sudo apt-get install php5-gd ?
Xavier Caillaud
Blog GLPI Infotel
Offline
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
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
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
can you try to launch directly gantt.php ?
Xavier Caillaud
Blog GLPI Infotel
Offline
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
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
hum no
waht is your mysql / php versions ?
Xavier Caillaud
Blog GLPI Infotel
Offline
can you try to do this ?
Xavier Caillaud
Blog GLPI Infotel
Offline
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
so you need freetype, i think..
Xavier Caillaud
Blog GLPI Infotel
Offline
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
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
Offline
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
Offline
Pages: 1
Topic closed