The most common reason for this problem is that the pictures are being uploaded with incorrect permissions. As a result of this the Apache service can not access them correctly and returns a 403 error.
The solution is simple. You need to access your account via FTP or using File Manager in cPanel and find theimages.inc.php file. Then open the file and find the lines below:
1
2
|
imagedestroy($ressource);
return$flag;
|
On a new line just above them you should add:
1
|
chmod($filename,0755);
|
After the change, the lines should look as follows:
1
2
3
|
chmod($filename,0755);
imagedestroy($ressource);
return$flag;
|
This rule will change the permissions for the uploaded pictures to 755 and they will be properly displayed.
You need help with a shopping cart? hostlantern is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!