Installation / Utilisation des graphs

MantisBT forum for users who prefer to ask and answer questions in French.

Moderators: Developer, Contributor

Post Reply
cluck
Posts: 5
Joined: 28 Jul 2011, 21:59
Location: France
Contact:

Installation / Utilisation des graphs

Post by cluck »

Bonjour à tous,
je n'arrive par à faire fonctionner les graphiques dans le bugtracker un message du type "Unable to read/find font" s'affiche.
J'ai aussi essayé d'utiliser jpgraph mais cela ne semble pas fonctionner.
Comment faut-il procéder pour ne plus avoir l'erreur ou pour installer jpgraph pour que mantis l'utilise ?

Merci pour votre aide
Clem
Lapinkiller
Posts: 408
Joined: 28 Jan 2011, 18:47
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by Lapinkiller »

Bonjour


Je ne suis pas sûr mais si tu utilise JPGraph essaye en modifiant le fichier /library/jpgraph/jpg-config.inc.php
aux lignes 39 et 40 tu as la possibiltié de définir où sont les polices :

voilà par exemple ma configuration (pour des raisons paratique j'ai mi un dossier ttf directement dans la lib jpgraph ^^)

Code: Select all

define('TTF_DIR','/var/www/web-apps/prod/php/library/jpgraph/ttf/');
define('MBTTF_DIR','/var/www/web-apps/prod/php/library/jpgraph/ttf/');
Last edited by Lapinkiller on 29 Jul 2011, 13:52, edited 1 time in total.
Reason: erreur de frappe "Je suis sûr" corrigé en "Je ne suis pas sûr "
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
cluck
Posts: 5
Joined: 28 Jul 2011, 21:59
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by cluck »

merci pour ta réponse, par contre que dois-je modifier dans mantis pour qu'il trouve jpgraph sur mon serveur?
Lapinkiller
Posts: 408
Joined: 28 Jan 2011, 18:47
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by Lapinkiller »

Tu peux spécifier l'emplacement de la librairie JPgraph via l'interface web > administration > plugins > graphiques
soit <monmantis.fr>/plugin.php?page=MantisGraph/config

par défaut il essaye de charger la librairie à partir de {mantisroot}/library/jpgraph
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
cluck
Posts: 5
Joined: 28 Jul 2011, 21:59
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by cluck »

j'ai bien mis jpgraph dans le dossier library de mantis, mais cela ne semble pas fonctionner.

Voici où il est disponible sur mon serveur
Serveur.jpg
Serveur.jpg (62.03 KiB) Viewed 11059 times
Voici la configuration dans mantis
bugtracker.jpg
bugtracker.jpg (84.23 KiB) Viewed 11059 times
Voici ce qui s'affiche lorsque j'essaie d'afficher un graphique (dans la page synthèse par exemple)
firefox.jpg
firefox.jpg (56.57 KiB) Viewed 11059 times
Il reste un problème j'imagine :(

Merci pour l'aide
Clément
Lapinkiller
Posts: 408
Joined: 28 Jan 2011, 18:47
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by Lapinkiller »

il faut que tu mettes le contenu de src directement dans /library/jpgraph ;)
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
cluck
Posts: 5
Joined: 28 Jul 2011, 21:59
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by cluck »

bon, il y a du mieux, mais apparemment il y a encore un problème au niveau du chemin des polices.
Où cela se paramètre t-il ?

Voici le message d'erreur dans mantis :
bugtracker.jpg
bugtracker.jpg (62.06 KiB) Viewed 11056 times
Voici le chemin où mes polices Arial et Verdana sont dispo :
Filezilla.jpg
Filezilla.jpg (88.29 KiB) Viewed 11056 times
Merci
Lapinkiller
Posts: 408
Joined: 28 Jan 2011, 18:47
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by Lapinkiller »

Lapinkiller wrote:Bonjour


Je ne suis pas sûr mais si tu utilise JPGraph essaye en modifiant le fichier /library/jpgraph/jpg-config.inc.php
aux lignes 39 et 40 tu as la possibiltié de définir où sont les polices :

voilà par exemple ma configuration (pour des raisons paratique j'ai mi un dossier ttf directement dans la lib jpgraph ^^)

Code: Select all

define('TTF_DIR','/var/www/web-apps/prod/php/library/jpgraph/ttf/');
define('MBTTF_DIR','/var/www/web-apps/prod/php/library/jpgraph/ttf/');
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
cluck
Posts: 5
Joined: 28 Jul 2011, 21:59
Location: France
Contact:

Re: Installation / Utilisation des graphs

Post by cluck »

j'y ai mis ça dans le fichier, mais je ne suis pas certain que ce soit juste (mais c'est ce qui me semble le plus proche de ton exemple...

Code: Select all

define('TTF_DIR','/clementl/www/BugTracker/1.2.6/library/jpgraph/ttf/');
define('MBTTF_DIR','/clementl/www/BugTracker/1.2.6/library/jpgraph/ttf/');
Le message d'erreur reste le même que précédemment.
Il cherche toujours dans le répertoire "/usr/share/fonts/truetype/"
Post Reply