couic avec url des images lors de la rectification

Imprimer Syndication RSS 2.0

spad64

Nouveau
Nouveau

Avatar de spad64

Messages : 8

Inscription :

Bonjour,
Je ne sais pas quel lien j'ai utilisé dans imageshack.us mais pas le bon désolé :oups:
Pouvez-vous essayer de modifier un post avec image avec la fonction "rectifier" sous l'avatar du membre ?
Il survient une erreur ligne 810 getsize image...mais je peux me tromper !
Merci

Aller en haut de page Aller en bas de page

Réponses

SLYc

Nouveau
Nouveau

Avatar de SLYc

Messages : 2

Inscription :

+1

a la place des images j'ai ca :

Citation
Warning: getimagesize() [function.getimagesize]: HTTP request failed! HTTP/1.1 404 in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize(http://slyc19.free.fr/http://img511.imageshack.us/img511/706/pdr0001br2.jpg) [function.getimagesize]: failed to open stream: Operation now in progress in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize() [function.getimagesize]: HTTP request failed! HTTP/1.1 404 in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize(http://slyc19.free.fr/http://img511.imageshack.us/img511/2919/pdr0002il1.jpg) [function.getimagesize]: failed to open stream: Operation now in progress in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize() [function.getimagesize]: HTTP request failed! HTTP/1.1 404 in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize(http://slyc19.free.fr/http://img511.imageshack.us/img511/8851/pdr0007rm7.jpg) [function.getimagesize]: failed to open stream: Operation now in progress in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize() [function.getimagesize]: HTTP request failed! HTTP/1.1 404 in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize(http://slyc19.free.fr/http://img511.imageshack.us/img511/4334/pdr0006fh0.jpg) [function.getimagesize]: failed to open stream: Operation now in progress in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize() [function.getimagesize]: HTTP request failed! HTTP/1.1 404 in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize(http://slyc19.free.fr/http://img511.imageshack.us/img511/8909/pdr0003so8.jpg) [function.getimagesize]: failed to open stream: Operation now in progress in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize() [function.getimagesize]: HTTP request failed! HTTP/1.1 404 in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Warning: getimagesize(http://slyc19.free.fr/http://img511.imageshack.us/img511/4181/pdr0005df6.jpg) [function.getimagesize]: failed to open stream: Operation now in progress in /mnt/128/free.fr/a/5/slyc19/inc/pgeditor/pgeditor.php on line 810

Aller en haut de page Aller en bas de page

jchouix

Administrateur

Avatar de jchouix

Messages : 1390

Inscription :

bonsoir,
je vous propose la correction suivante.
Vous devez éditer le fichier postguest.php situé à la racine du site et aller à la ligne 1106 o๠vous avez ce code :
$fieldc1 = preg_replace('`<img src="([^"]+)"[^>]+>`i', '<img src="'.$site[3].'$1">', $fieldc1);

Vous mettez deux slashs // devant cette ligne comme ceci :
// $fieldc1 = preg_replace('`<img src="([^"]+)"[^>]+>`i', '<img src="'.$site[3].'$1">', $fieldc1);

Avant de l'intégrer dans une mise à jour, j'aimerai que vous fassiez des tests pour me dire si tout est ok.
A+

Aller en haut de page Aller en bas de page

SLYc

Nouveau
Nouveau

Avatar de SLYc

Messages : 2

Inscription :

Ca fonctionne correctement avec la modification du code, merci beaucoup.

Aller en haut de page Aller en bas de page

efdy

Nouveau
Nouveau

Avatar de efdy

Messages : 2

Inscription :

bonjour,
moi j'obtiens à§a en insérant une image externe :

Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /mnt/127/sdb/chez.com/c/a/cantalamoto/inc/pgeditor/pgeditor.php on line 828

Warning: getimagesize(http://www.imagefreehost.com/files/09062009/sh66186564332.jpeg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /mnt/127/sdb/chez.com/c/a/cantalamoto/inc/pgeditor/pgeditor.php on line 828


une idée ?

Aller en haut de page Aller en bas de page

jchouix

Administrateur

Avatar de jchouix

Messages : 1390

Inscription :

bonsoir edfy,
Citation
Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /mnt/127/sdb/chez.com/c/a/cantalamoto/inc/pgeditor/pgeditor.php on line 828
Ce message t'avertit que ton hébergeur n'autorise pas l'accès aux fichiers externes. Or pour pouvoir savoir si le fichier est un véritable fichier image et non autre chose qui pourrait contenir du code malicieux, l'éditeur utilise la fonction getimagesize() qui va analyser et vérifier le code du fichier externe. Il lui faut donc l'accès à ce fichier. La solution est de contacter ton hébergeur pour voir s'il peut modifier la configuration du serveur.
A+

Aller en haut de page Aller en bas de page