Images cannot be uploaded - or they do not show properly
Some hosts will not allow images to be uploaded via PHP. So if the fix below does not work, you may need to check with your web host to see if they allow file uploads.
If your host does allow file uploads, but the images aren't uploading properly or you cannot view them (or get a 403 error when you view them):
-
First check the images folder. Make sure that it is writeable - most often that means that you'll need to change the permissions of the folder from 755 to 777.
-
If you get a 403 error when you upload files, open the imgload.php page in the /shopadmin/ folder, and find the lines:
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $rel_img)) {then just underneath, add:
@chmod ($rel_img, 0644);
Please note: It is *very* important that you only apply this change if your images are uploading but they are not visible. (ie. when you go to yoursite.com/images/imageyouuploaded.jpg, it shows a 403 error). Adding the chmod statement will cause PHP to be the owner of the file, and that can cause issues down the road if you need to download images from the server.