- Posts: 6
- Thank you received: 2
Product Image and Thumbnail Permission
6 years 1 month ago - 6 years 1 month ago #324013
by sap-corp
Product Image and Thumbnail Permission was created by sap-corp
-- 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.
-- 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.
Last edit: 6 years 1 month ago by sap-corp.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #324024
by nicolas
Replied by nicolas on topic Product Image and Thumbnail Permission
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
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.
6 years 1 month ago - 6 years 1 month ago #324034
by sap-corp
Replied by sap-corp on topic Product Image and Thumbnail Permission
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: 6 years 1 month ago by sap-corp.
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds