Warning ! The image ... is too big to be processed

  • Posts: 31
  • Thank you received: 1
10 years 4 months ago #184881

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : Message
Warning ! The image test.jpg is too big to be processed because of the memory limitation on your server. Either use a smaller image or increase the memory_limit parameter of the php.ini of your server.

Bonjour,
J'ai un message d'erreur quand j'upload une image dans un produit :

Warning ! The image test.jpg is too big to be processed because of the memory limitation on your server. Either use a smaller image or increase the memory_limit parameter of the php.ini of your server.

Cela fonctionnait très bien avant.

J'ai fait plusieurs test.
Cela ne vient pas du serveur. Un autre site fonctionne très bien sur le même serveur.
J'ai réduit au maximum l'image. Elle fait 10 ko. Donc cela ne vient pas du poids.

Quelqu'un pourrait m'aider svp ?

Last edit: 10 years 4 months ago by infotood.

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 1
10 years 4 months ago #184908

Ce bug apparaît pour tout nouvel enregistrement. Même l'image barcode.png, soit l'image de base, est trop grosse.

Je cherche toujours.
Si quelqu'un a 1 idée ?

Please Log in or Create an account to join the conversation.

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
10 years 4 months ago #184913

Bonjour,

Merci de nous fournir plus d'informations sur votre configuration PHP et plus spécialement la limitation mémoire de votre site.

Cordialement,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 1
10 years 4 months ago #184946

Bonjour,

Voici les informations de ma configuration PHP :

max_execution_time 1000
max_file_uploads 20
max_input_nesting_level 64
max_input_time 1000
max_input_vars 1000
memory_limit 512 M
post_max_size 500 M

J'utilise Joomla et je n'ai aucune limitation sur le même site.

Cordialement

Please Log in or Create an account to join the conversation.

  • Posts: 26247
  • Thank you received: 4038
  • MODERATOR
10 years 4 months ago #184956

Bonjour,

Merci bien pour ces informations.

Vous avez un espace entre le nombre et le symbol d'unité ; ce qui n'est (était) pas prit en compte par le système de vérification de mémoire.
php.net/manual/fr/ini.core.php#ini.sect.resource-limits

Le plus simple est d'aller éditer le fichier : "administrator/components/com_hikashop/helpers/image.php" et de remplacer

if(preg_match('/^(\d+)(.)$/', $memory_limit, $matches)) {
Par
if(preg_match('/^(\d+)\s*(.)$/', $memory_limit, $matches)) {
Ainsi le système prendra bien en compte l'unité de valeur et pensera pas qu'il ne s'agit que de 512 octets.

Cordialement,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: infotood

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 1
10 years 4 months ago #184975

Bonsoir,

Ok je vous remercie. Ça fonctionne.

Bonne soirée.
Cordialement

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum