Member
Member
davidarnoult   2021-07-29, 21:11
#1

Hi,
Despite the warning (I like risk...), I have updated my web site from 1.5.9 to 1.6a from the support branch.
Since, all images that have a special character or a space in file path is not found anymore. It used to work fine :neutral:

Example :
Erreur Zenphoto : l’objet demandé n’a pas été trouvé.
Album : 2020-2029/2021/Viequotidienne
Real file path is 2020-2029/2021/Vie%20quotidienne/

It seems that it is related to the function sanitize_path that has been modified. Is there a way to fix that? Is there a new parameter in the backend in 1.6?

Administrator
Administrator
acrylian   2021-07-30, 15:57
#2

Yes, that function was modified, read about why here please:
https://forum.zenphoto.org/discussion/1410824/invalid-album-instantiation#latest

It might not be perfect yet, which is why it is a alpha version :-)

Generally I strongely recommend not to use any special chars or spaces within folder/filenames because it can cause all kind of trouble.

We may make cleaned folder/filenames mandatory at some point if uploading from the backend as currently it is a plugin doing this. This is what most CMS do as well.

Administrator
Administrator
acrylian   2021-07-31, 09:24
#3

We have decided to revert our actually more secure change to avoid this behaviour. Still it is a good idea to seocleanup folder and filenames.

Member
Member
davidarnoult   2021-08-03, 23:47
#4

Yes, thanks. It solves the problem ;-)
I will keep as long as I can my naming friendly readable (including spaces and accents etc) as it is a mirror of my source repository exported by LightRoom.
I will check in the future if I can sanitize it when exporting it.

Administrator
Administrator
acrylian   2021-08-04, 07:52
#5

Always keep in mind that the name (= URL) and the title (= website) are independent.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.