Open bigs38 opened 5 years ago
Hi, First of all thank you for the job. The plugin is very useful.
Unfortunately the problem is the same for me: Everything works fine in Piwigo with that configuration except for the display of every thumbnails in every maps of the openstreetmap plugin.
I think that I understood the problem: I had to modify the local configuration for Piwigo to accept my gallery with French characters set : $conf['sync_charsregex'] = '/^[a-zA-Z0-9-.].*$/'; For each "special" character in the "/galleries/.../picturename.JPG" there is one character shift error in the URL rewriting when trying to add "-sq" between "picturename" and '.JPG" (i.php?/galleries/.../picturename-sq.JPG)
For example, for one "special" character (for exemple "é") in /galleries/.../picturename.JPG the rewrite will be /galleries/.../picturename.-sq.JPG for two "specials" characters in /galleries/.../picturename.JPG the rewrite will be /galleries/.../picturename.J-sq.JPG for three "specials" characters in /galleries/.../picturename.JPG the rewrite will be /galleries/.../picturename.JP-sq.JPG etc.
With no special character the rewrite will be ok (/galleries/.../picturename-sq.JPG) and so the display.
Hi there. Thanks for the great plugin! As @Olivier80260, I have configurated piwigo to accept some special characters in filenames (Space and german äöü). As the url to the preview picture is not handling special characters, the pictures are not appearing.
The OSM-Map-Plugin would rock eean more, if it would handle special characters in the url like piwigo does:
URL to picture in piwigo detail view (works)*: http://piwigo.infraconsult.ch/_data/i/galleries/photo/Interne%20Weiterbildung/Teamanl%C3%A4sse/2017-03%20Abschiedsapero%20Bea%20Rudern/thumb_IMG_0962_1024-la.jpg
URL to picture in OSM-Map (file not found)*: http://piwigo.infraconsult.ch/i.php?/galleries/photo/Interne Weiterbildung/Teamanlässe/2017-03 Abschiedsapero Bea Rudern/IMG_3436.-sq.JPG
*these are not pulic URLs, only internal Network
Greetings, Bruno
Hi, like this issue #68 it seems to be the same type of problem. When I have special characters in the name of the picture thumbnails are not displayed. The url of the thumbnails are like that : i.php?/albums/Nous/Vacances/Suède - 7 au 10 Septembre 2017/007 - Vacances en Suède.j-sq.jpg i.php?/albums/Nous/Vacances/Vacances à Sollières Sardières/2017/11 - Vacances à Sollières Sardières.jpg-sq.jpg
I don't know why but it add some letters at the end (.j-sq.jpg or .jpg-sq.jpg in my exemple). If I try to copy the link in the browser and if I remove extra letters in URL, the thumbnail is display correctelly !
Best, Bigs38