Page 1 of 1

image could not be loaded - 404

Posted: 26 Mar 2023, 17:57
by Searchlight
Hi

I have made some changes - added folders and replaced files using ftp. I have opened the gallery in the backend, pressed save and deleted the cache. The folders are showing up in the gallery and the thumbnail images are displaying ok but if I click on one of the images, I get an error “image could not be  loaded” and if I click on the link embedded in “image” I get a 404 error but the file is there!

What am I missing? Why are the pictures not accessible?  Folders that I havenˋt touched are working as expected.

Re: image could not be loaded - 404

Posted: 26 Mar 2023, 23:25
by mjau-mjau
Almost impossible to guess without a link. Sounds like your original large images are not loading in browser even outside X3? If so, you need to check the url path in browser vs the server path on disk ... If the file is there, but not loading in browser, you need to ask your host, this is not normal.

If you have a link, I can diagnose properly.

Re: image could not be loaded - 404

Posted: 27 Mar 2023, 02:12
by Searchlight
Hi Karl

Thank you for your reply. The Link https://www.searchlight.zone/Gallerie/Rom/ points to a working directory whereas https://www.searchlight.zone/Gallerie/Savoie/ point to one of the non-working new directories. Also the banner element is not displayed in the new directory. Another link that is not working is https://www.searchlight.zone/Gallerie/Schottland/NC500/ - I have accidentally deleted this directory and then re-uploaded it with the same content. Before, the content worked fine, after the re-upload, I cannot open the images anymore.

Re: image could not be loaded - 404

Posted: 27 Mar 2023, 02:45
by mjau-mjau
All I can see 100%, is that images in the "non-working" directory, are definitely not there:
https://www.searchlight.zone/content/Ga ... -40D46.jpg
Image
In fact, to me it looks like the directory is not even there. Please check your FTP to validate the path, and also compare cAsE in the file path. If the image is there on your FTP, then you must contact your host about this. Only they can know why 1. the file is there and 2. it's not accessible on the website. X3 can't load an image if it's not available by direct url, and X3 can't block direct access to images.

1. Either the file is not there, or 2. maybe there is something permissions-related, or 3. you have some .htaccess or apache/nginx config which is doing something unwanted.

Re: image could not be loaded - 404

Posted: 27 Mar 2023, 02:59
by Searchlight
Hi Karl

Thank you for your diagnosis - you hit the nail with number 2 - the  new folders hat 700 access rights instead of 755. It seems like they did not inherit the permission from the parent folder.

Re: image could not be loaded - 404

Posted: 28 Mar 2023, 00:36
by mjau-mjau
Good find! It's always something ...