-
Notifications
You must be signed in to change notification settings - Fork 72
ID Templates #262
Comments
Could you please explain the problem? I just checked and the templates seem to work ... |
Ok, thanks. I tried to replicate your problem. I entered the same URL, see pic, and everything worked (green), as it should: The generated links worked to: Maybe the error message indicates the problem. If you could switch on debug mode then you could look at the log files in the |
I switched BBS to debug mode and here is the part of log: INFO - 2017-10-31T08:12:09+01:00 - BicBucStriim 1.3.6: Running in debug mode. |
It seems there is a problem with the id databazeknih, which produces the error. As far as I can see from your pics and logs the ID looks like an ASCII string. The ASCII string databazeknih would of course work as an ID. However, the warning in the log says: it isn't an ASCII string. Could you please check for non-ASCII characters in this ID? See Identifiers in Calibre. |
I did not found any non-ASCII chars in string. But I tryed the same procedure with ISBN identifier with values: |
It still is functional, at least over here. There must be some encoding issue. There is a change that could help with this issue. Could you please try that out? if it works for you I'll add it to the new version: In index.php change the line 394 // parameter checking
if (!preg_match('/^\w+$/',$id)) { // <-- this one
$app->getLog()->warn('admin_modify_idtemplate: invalid template id ' . $id);
$app->halt(400, "Bad parameter");
} to if (!preg_match('/^\w+$/u',$id)) { The "u" adds unicode support and should solve the problem. Repeat the same for line 433. |
My index.php is looking different. Look at lines 394 and 433. |
But changed lines 393 and 432 and IT WORKS! |
Glad to hear that. I'll add it to the code and will release 1.3.7 soon |
Impossible to submit ID template settings values (name, URL).
example->
name: "Databaze knih"
URL: "https://www.databazeknih.cz/knihy/%id%"
BBS ver. 1.3.6 (Synology DSM package)
browser Firefox 56.0.1 (64bit)
The text was updated successfully, but these errors were encountered: