News arrow Forum
Home    Contacts
Forum Dolibarr
Welcome, Guest
Please Login or Register.    Lost Password?
Re:image KO dans Stocks (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 11
TOPIC: Re:image KO dans Stocks
#9760
sebhm (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
image KO dans Stocks 2008/08/16 11:19 Karma: 0  
bonjour,

erreur loin d'être bloquante : l'image 'Valorisation du stock année 2008' ne s'affiche pas lors de la visualisation de la valorisation d'un stock d'un entrepot donné (Fiche entrepot > onglet Valorisation)

comme si l'image était inexistante (pb install ?)

l'url de l'image est /dolibarr-2.4.0-beta/env2/appli/viewimage.php?modulepart=graph_stock&file=entrepot-1-2008.png
je ne savais pas qu'on pouvait mettre un fichier PHP dans le source d'une balise IMG... ce fichier PHP retourne une URL ?
 
Logged Logged  
  The administrator has disabled public write access.
#9761
sebhm (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Re:image KO dans Stocks 2008/08/16 11:54 Karma: 0  
alors, voici ce que j'ai trouvé :

reponse à ma question : le fichier viewimage affiche l'image grace à la commande PHP readfile.

et le probleme semble venir de ce bout de code dans viewimage.php :
Code:
if ($modulepart == 'graph_stock') { $accessallowed=1; $original_file=DOL_DATA_ROOT.'/graph/entrepot/'.$original_file; }
je ne sais pas voir le repertoire graph dans l'arborescence Dolibarr
 
Logged Logged  
  The administrator has disabled public write access.
#9825
eldy (Admin)
Admin
Posts: 1681
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male Site web personnel eldy10 ldestailleur@hotmail.com Location: Montigny-le-Bretonneux (St-Quentin en Yvelines) Birthdate: 1972-10-10
Re:image KO dans Stocks 2008/08/25 23:57 Karma: 40  
J'ai fait une correction dans la CVS 2.5-dev
Il faut lancer le script scripts/cron/stock-graph.php pour generer les graphiques.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop