Hello,
I'm running Piwigo in a docker on Openmediavault.
In the past i created some albums and added some pictures with my iPhone. Thumbnails where created.
Suddenly there are no thumbnails available. I can see the original picture but get an error while creating the thumbnail with Batch Manager. When i try to directly link to a thumbnail i get the "Invalid chars in request" error.
My plugins are: Admin Tools, Community, Local Files Editor and Take a Tour.
Theme: clear
Piwigo 2.9.5
OS: Linux
PHP: 7.2.19 [2019-08-17 13:19:33]
MySQL: 5.5.5-10.3.16-MariaDB-1:10.3.16+maria~bionic-log [2019-08-17 13:19:33]
Graphics library: ImageMagick 7.0.8-44
Offline
In your LocalFIles Editor add to the config (local/config/config.inc.php):
// permitted characters for files/directories during synchronization $conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.]+$/';
and change the character class [a-zA-Z0-9-_.] to something that includes the characters that you need, e.g. that are not ASCII characters, for example to add the characters ä, ü, ö both lowercase and uppercase plus ß, change the string to '/^[a-zA-Z0-9-_.ÄäÖöÜüß]+$/'
Note that the file system must support those characters the same as they are typed in and saved to file, i.e. in UTF-8 character encoding.
Offline
Hi,
i changed $conf['sync_chars_regex'] to '/^[a-zA-Z0-9-_.ÄäÖöÜüß]+$/' and immediately get rid of the error message and could see the thumbnails!
Thank you.
PS: To see pictures in HEIC-Format from my iPhone i needed to set "Automatic" instead of "Keep original" in the Photo-App!
Last edited by Spiff (2019-08-18 13:09:25)
Offline