Search…

X3 Photo Gallery Support Forums

Search…
 
Searchlight
Topic Author
Posts: 6
Joined: 12 Feb 2020, 09:27

image could not be loaded - 404

26 Mar 2023, 17:57

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.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: image could not be loaded - 404

26 Mar 2023, 23:25

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.
 
Searchlight
Topic Author
Posts: 6
Joined: 12 Feb 2020, 09:27

Re: image could not be loaded - 404

27 Mar 2023, 02:12

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.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: image could not be loaded - 404

27 Mar 2023, 02:45

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.
 
Searchlight
Topic Author
Posts: 6
Joined: 12 Feb 2020, 09:27

Re: image could not be loaded - 404

27 Mar 2023, 02:59

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.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: image could not be loaded - 404

28 Mar 2023, 00:36

Good find! It's always something ...