Guest Posted November 18, 2015 Posted November 18, 2015 We upgraded to 2.3.4 and now no images are showing on the main product page. They are in the image file, when I look at the page source the link is correct but all I am seeing is the "alt". The logo is also not showing up although I uploaded it using the upload under donfiguration on the administration page. It is as if something is blocking images from showing up on the site. The site is http://www.ventureclubs.org/catalog-new/ Thanks!! Bev
♥kymation Posted November 18, 2015 Posted November 18, 2015 Your images are returning a 500 server error. If you have an.htaccess file in the root directory, try renaming that to see if it's the problem. Regards Jim See my profile for a list of my addons and ways to get support.
Guest Posted November 18, 2015 Posted November 18, 2015 I renamed the htaccess but that made no difference. Also - there is an htaccess in the old version and all images are showing up. Also, when I click on the image link in the page source of the old version, I go to the image, but in the new version I get the 500 server error..... Bev
MrPhil Posted November 18, 2015 Posted November 18, 2015 By any chance do you have "hotlink protection" on your images? I don't think that's normally set up to return a 500 error, but it's worth checking.
Guest Posted November 19, 2015 Posted November 19, 2015 I don't think we have "hotlink" protection - never heard of it :-)
♥kymation Posted November 19, 2015 Posted November 19, 2015 Check the permissions on your images -- they should be the same as your PHP files. Also, did you upload these images with FTP? If so, try uploading the images again in binary mode. Regards Jim See my profile for a list of my addons and ways to get support.
MrPhil Posted November 19, 2015 Posted November 19, 2015 I don't think we have "hotlink" protection - never heard of it :-) Hotlink protection is often used to "protect" images, although other documents can be protected too. The idea is to stop other sites from displaying your images on their sites, by simply pointing links to the images on your site. Technically it's not a copyright violation, as they haven't actually copied the files to their site, but still you end up paying hosting and bandwidth costs that benefit them, not you. Hotlink protection is implemented in .htaccess, which fails attempts to fetch an image file unless the "referrring" site is whitelisted (needs to include your site(s) at a minimum). It's normally not implemented by default, so you would have had to have requested it explicitly (many hosts have a button to do it in their control panels).
allaboutwicker Posted November 19, 2015 Posted November 19, 2015 I found this old thread that mentions an .htaccess file in images folder may have caused their issue? http://www.oscommerce.com/forums/topic/393829-unable-to-get-images-to-load-even-after-permissions-htaccess-and-url-check-500-error/
Guest Posted November 19, 2015 Posted November 19, 2015 Thanks everyone! I found another htaccess file in the images folder and renamed it and now seems to be working OK Bev
MrPhil Posted November 20, 2015 Posted November 20, 2015 OK, so you found the offending .htaccess file. Now, what within that file caused the problem? It's not good to simply rename or delete an .htaccess file -- it was put there for a reason! If it's choking on Options -Indexes (which many hosts no longer allow for security reasons), the easiest fix is to add an empty file "index.html" to that directory, and #-out the offending line in .htaccess. You can also make an index.html that just says something snarky like "You lookin' at me? I said, are you lookin' at me?!". If that leaves all commands in .htaccess commented out, you can go ahead and erase .htaccess. Note to osC developers: please remove Options -Indexes from the 3 or so .htaccess files it's still found in.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.