THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Bonjour,
Il m'est impossible d'associer une image .jpg au produit créer en BO. Quand le choix de la photo est fait, elle apparaît quelques secondes puis rien...
Quelqu'un aurait une solution? J'ai déjà activé phpfileinfo et pas mieux. *
Merci

Offline


Je n'ai pas de solution, mais ça m'est arrivé avec une photo trop lourde (3Mo).

Offline


Re,
Merci pour la réponse rapide, mais ces photos font de 4 à 16ko!!!

Offline


non c'est un problème de permissions ...

Chmod 777 /local/media et reteste

Offline


J`ai changé les permissions, et maintenant j'ai ce message :
You can only upload images (.png, .jpg, .jpeg, .gif)   avec une croix rouge sur la photo

Offline


Et quel est le nom de fichier exact de ta photo ?


OpenStudio Toulouse

Offline

Offline


Tu est sûr ? pas atx.JPG (jpg en majuscules), des fois ?


OpenStudio Toulouse

Offline


Oui, sûr et certain!!!
Je signale que je suis sous windows et non pas sous Linux.

Offline


une question ? tu à pas un fichier que tu à préalablement renommé ? ou alors tu as bien les librairies GD JPG BMP ... installé ?

Offline


comment installer ces librairies?

Offline


Elles sont sans aucun doute déjà installées.

Tu peux le vérifier avec phpinfo().

Tu utilises wamp sur Windows ?


OpenStudio Toulouse

Offline


EasyPHP-DevServer-14.1VC11

Offline


Aucune erreur dans le log d'Apache ?


OpenStudio Toulouse

Offline


[Wed Mar 19 07:50:39.949287 2014] [mpm_winnt:notice] [pid 6952:tid 228] AH00455: Apache/2.4.7 (Win32) PHP/5.5.8 configured -- resuming normal operations
[Wed Mar 19 07:50:39.950287 2014] [mpm_winnt:notice] [pid 6952:tid 228] AH00456: Apache Lounge VC11 Server built: Nov 21 2013 20:13:01
[Wed Mar 19 07:50:39.950287 2014] [core:notice] [pid 6952:tid 228] AH00094: Command line: 'C:\\PROGRA~1\\EASYPH~1.1VC\\binaries\\apache\\bin\\eds-httpd.exe -d C:/Program Files/EasyPHP-DevServer-14.1VC11/binaries/apache'
[Wed Mar 19 07:50:39.970289 2014] [mpm_winnt:notice] [pid 6952:tid 228] AH00418: Parent: Created child process 7060
PHP Warning:  PHP Startup:  in Unknown on line 0
[Wed Mar 19 07:50:41.703388 2014] [mpm_winnt:notice] [pid 7060:tid 240] AH00354: Child: Starting 64 worker threads.

Offline


Le error.log,  plutot.


OpenStudio Toulouse

Offline


[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: offset `cat' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: type `cat' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: offset `=head2 ' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: type `=head2 ' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: offset `=head1 ' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: type `=head1 ' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: offset ` endian ("64-bit")' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: type `endian ("64-bit")' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: offset `\x01' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: type `\x01' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.664129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: offset `=pod' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.665129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: type `=pod' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.665129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: offset `ship' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.665129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Notice:  finfo::finfo(): Warning: type `ship' invalid in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1
[Wed Mar 19 11:54:27.666129 2014] [:error] [pid 7068:tid 772] [client 127.0.0.1:56183] PHP Warning:  finfo::finfo(): Failed to load magic database at '(null)'. in E:\\thelia\\core\\vendor\\symfony\\http-foundation\\Symfony\\Component\\HttpFoundation\\File\\MimeType\\FileinfoMimeTypeGuesser.php on line 51, referer: http://127.0.0.1/monsite/web/index.php/ … oduct_id=1

Offline


contact moi en mp et donne moi tous les identifiants je regarderais et règlerais le soucis .car la jepenseque tu est perdu

Offline


Ca va pas être simple sur un PC en local wink

Patrice, vérifie que l'extension php_fileinfo est bien activée, et apparaît dans le résultat de phpinfo().


OpenStudio Toulouse

Offline


disons que si il install un serveur ftp .... c'est possible .... ou alors un acces à distance avec nunux ou win c facile smile

ceci dit le local c'est toujours un problème

Offline


extensionereg  [fonctions]
extensionfileinfo  [fonctions]
                           6 fonctions :
                           functionfinfo_buffer
                           functionfinfo_close
                           functionfinfo_file
                           functionfinfo_open
                           functionfinfo_set_flags
                           functionmime_content_type

extensionfilter  [fonctions]
extensionftp  [fonctions]
extensiongd  [fonctions]
extensionhash  [fonctions]
extensioniconv  [fonctions]
extensionintl  [fonctions]
extensionjson  [fonctions]
extensionlibxml  [fonctions]
extensionmbstring  [fonctions]
extensionmcrypt  [fonctions]
extensionmhash  [fonctions]

Offline


Le mystère s'épaissit. Tu peux nous donner un lien vers le fichier en question  ?


OpenStudio Toulouse

Offline


J'ai également un problème similaire :
  - je peux ajouter sans problèmes des images au format png
  - dès que je prend une image .jpg, l'image apparait moins d'1 seconde puis disparait

Rien vu dans les logs (php_error.log), pas de problème de droits d'accès

Offline


Moi aussi j'ai le même problème. L'image apparait un court instant, puis plus rien... ca mouline mais il ne se passe absolument rien.

(en revanche je ne sais pas comment faire pour vérifier ou changer les droits éventuels en local)

Je vais tester avec un.png pour voir si ca marche...

Offline


(pour info si certains ont le même problème que moi : ma version de PHP n'avait pas été compilée avec l'option jpegdir)