Cannot Upload Any Product Images: They Disappear

  • Posts: 284
  • Thank you received: 6
8 years 2 months ago #266915

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.30

I can drag and drop the product image (or upload it).
It shows that it is uploading.
The image container turns green then...the image disappears.
No images show up in the image area.
BUT, if I save the Product and go into the product again, you can see all the ATTEMPTS I made in uploading the images -- these are represented by the 'default image' icon.

I have switched the Editor from JCE to the default TinyMCE. But no change.
I also turned off RSFirewall!, but that didn't change anything either.

Attachments:
Last edit: 8 years 2 months ago by MSTACE.

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

  • Posts: 284
  • Thank you received: 6
8 years 2 months ago #266916

I found the issue:
The filename was apparently too long. Did not like 70 characters.
I have not had this issue before.

Is this perhaps a PHP setting that needs to change?
I'm thinking this is a suhosin issue.
I have contacted cPanel support.
Will let you know.

Last edit: 8 years 2 months ago by MSTACE.

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 2 months ago #266925

Hello,

Regarding the "70 characters" long, I think you're right about suhosin ; that's the kind of check that this module is doing.

Regards,


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: 284
  • Thank you received: 6
8 years 2 months ago #266976

YES, it was a suhosin issue. It is working now.

Here is the fix. Set these variables in php.ini:

suhosin.get.max_value_length = 4095
suhosin.get.max_name_length = 512
suhosin.post.max_name_length = 512
suhosin.request.max_totalname_length = 512
suhosin.request.max_varname_length = 512

Note: This variable is especially important to receive back the confirmation code from PayPal: suhosin.get.max_value_length = 4095
Without this set the confirmation URL code will be truncated.

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

Time to create page: 0.041 seconds
Powered by Kunena Forum