CMSimple & Wamp : pics qui ne s'affichent pas

alexdelareunion Messages postés 555 Statut Membre -  
alexdelareunion Messages postés 555 Statut Membre -
Bonjour,

Merci à ceux qui lisent ce message de consacrer quelques instants à mon problème car il me casse les pieds.
Voila je fais tourner CMSimple dans un serveur Wamp, sous XP (xphome). Je suis embêté car les images du template ne s'affichent pas. Apparement il s'agirait d'un bug de permission, mais je n'y connais pas grand chose à Apache c'est pourquoi je m'en remet à la communauté CCM.
Quand je fais un clic droit sur une image vide en choisissant "afficher l'image", j'atterrit sur un "Forbidden 403".
Voici une partie du error log Apache contenant le problème :
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>roundaround-bk.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>spacer.gif HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r1_c1.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r2_c1.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r4_c1.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r3_c1.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r4_c3.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r3_c3.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r5_c1.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] (20024)The given path misformatted or contained invalid characters: Cannot map GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r6_c1.jpg HTTP/1.1 to file, referer: http://localhost/bourdel/
[Tue Apr 21 06:30:22 2009] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/bourdel/templates/roundaround2blue2/arrow.gif, referer: http://localhost/bourdel/


Pour le "The given path misformatted or contained invalid characters" je souligne que je n'ai pas touché le code de CMSimple, et j'immagine qu'il n'aurait pas été mis en production avec un bug à ce niveau là.
Dans l'acces log, on voit un code 403 qui apparait sur les lignes appelant les images, mais je ne sais pas lire ce log.

access log Apache :
127.0.0.1 - - [21/Apr/2009:06:30:19 +0400] "GET / HTTP/1.1" 200 4346
127.0.0.1 - - [21/Apr/2009:06:30:19 +0400] "GET /index.php?img=gifLogo HTTP/1.1" 200 5172
127.0.0.1 - - [21/Apr/2009:06:30:19 +0400] "GET /index.php?img=pngPlugin HTTP/1.1" 200 548
127.0.0.1 - - [21/Apr/2009:06:30:20 +0400] "GET /index.php?img=pngWrench HTTP/1.1" 200 741
127.0.0.1 - - [21/Apr/2009:06:30:20 +0400] "GET /index.php?img=pngFolder HTTP/1.1" 200 850
127.0.0.1 - - [21/Apr/2009:06:30:20 +0400] "GET /index.php?img=pngFolderGo HTTP/1.1" 200 694
127.0.0.1 - - [21/Apr/2009:06:30:20 +0400] "GET /index.php?img=favicon HTTP/1.1" 200 13262
127.0.0.1 - - [21/Apr/2009:06:30:21 +0400] "GET /bourdel HTTP/1.1" 301 233
127.0.0.1 - - [21/Apr/2009:06:30:21 +0400] "GET /bourdel/ HTTP/1.1" 200 11729
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/templates/roundaround2blue2/stylesheet.css HTTP/1.1" 200 7816
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>roundaround-bk.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>spacer.gif HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r1_c1.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r2_c1.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r4_c1.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/templates/roundaround2blue2/images/search-but.jpg HTTP/1.1" 200 356
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r3_c1.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r4_c3.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r3_c3.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r5_c1.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/%3C?=$pth['folder']['templateimages']?>template_r6_c1.jpg HTTP/1.1" 403 214
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/templates/roundaround2blue2/images/searchbk.jpg HTTP/1.1" 200 435
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /bourdel/templates/roundaround2blue2/arrow.gif HTTP/1.1" 404 243
127.0.0.1 - - [21/Apr/2009:06:30:22 +0400] "GET /favicon.ico HTTP/1.1" 404 209


Merci de me faire part de vos idées au plus vite!
A voir également:

4 réponses

pebkac
 
tes 403 sont dûs au fait qu'un < parasite se trouve dans l'url (code '<' = 3C)
0
alexdelareunion Messages postés 555 Statut Membre 142
 
Merci de ta réponse,

Je viens d'essayer le cms avec Easy Php, et là les images passent sans problème, donc je suppose que c'est bien un problème de config et pas une erreur dans le code.
J'aimerai pouvoir comprendre ce problèeme car il risque de se reproduire quand j'installerai le site sur le serveur de prod, vu qu'il ne tournera pas sous easyphp...

a plus!
0
alexdelareunion Messages postés 555 Statut Membre 142
 
c'est passé avec easyphp parceque ma version était antédiluvienne. Maintenant que j'ai la nouvelle, le problème est réaparu. Cela vient de la config de Apache2 donc comment faire pour avoir une configuration par défaut sur les sous dossiers, plus permissive
0
alexdelareunion Messages postés 555 Statut Membre 142
 
Alors je me réponds tout seul... pour la postérité...
Le squelette des templates de CMSimple sont écrits en html + php. Ils font appel aux images en donnant un code php en plein milieu du html. C'est ce code php qui posait problème.
J'ai donc remplacé toutes les formules ressemblant à ça :
background="<?=$pth['folder']['templateimages']?>roundaround-bk.jpg"

par :
background="<?php echo $pth['folder']['templateimages']?>roundaround-bk.jpg"

Et ça marche nickel.
0