Product Image and Thumbnail Permission

  • Posts: 6
  • Thank you received: 2
  • Hikashop Multisite
4 years 6 months ago #324013

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 5.6.40

Until recently product images and their generated thumbnails had the permission set to 0755, but now they are 0640 causing the image to not display. When I manually change to 0644 or 0755 it displays correctly.
Joomla may have just been updated. I'm not experiencing this issue on another site running 3.9.20.

Attachments:
Last edit: 4 years 6 months ago by sap-corp.

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

  • Posts: 83407
  • Thank you received: 13500
  • MODERATOR
4 years 6 months ago #324024

Hi,

HikaShop is not setting any permission on the files when it save them. It simply uses the imagejpeg / imagegif / imagepng functions of PHP to save the files. So I would assume that these are the default permissions set by your PHP / server based on how the php.ini or your server user access settings are configured.
However, I searched a bit online and couldn't find information on how to change that and the php.net pages for these functions don't mention anything related to file permissions: www.php.net/manual/en/function.imagejpeg.php

The following user(s) said Thank You: sap-corp

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

  • Posts: 6
  • Thank you received: 2
  • Hikashop Multisite
4 years 6 months ago #324034

Thank you Nicolas for the guidance. We'll reach back out to our hosting provider about this! We also tested two sites that are on Joomla 3.9.20 one on the same shared hosting plan as this site and the other in a VPS and the VPS hosted site works fine while the other site on the shared hosting has the same issue.

Last edit: 4 years 6 months ago by sap-corp.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum