Summary: | Generating Gallery: "Could not load XSL file" | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Kurpfaelzer <Stephan.Kranz> |
Component: | Plugin-Generic-HTMLGallery | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, metzpinguin |
Priority: | NOR | ||
Version: | 5.6.0 | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://commits.kde.org/digikam/b576e320fe571afde7026d18dce84c3d06e6ff62 | Version Fixed In: | 5.6.0 |
Sentry Crash Report: |
Description
Kurpfaelzer
2017-06-04 09:50:04 UTC
Look like the path is wrong : '/C:/Program Files/digiKam/data/digikam/themes/elegant//template.xsl' ... it start with "/" like under Linux path. There is a bug in source code... Can you confirm that 'C:/Program Files/digiKam/data/digikam/themes/elegant//template.xsl" file exist in your system ? Gilles Caulier Git commit 0c1c206a5b6c5f7f15a04b08ed00651f2c640049 by Maik Qualmann. Committed on 04/06/2017 at 10:38. Pushed by mqualmann into branch 'master'. fix path to XSL file under windows M +1 -1 utilities/assistants/htmlgallery/generator/gallerygenerator.cpp M +1 -1 utilities/assistants/htmlgallery/generator/gallerytheme.cpp https://commits.kde.org/digikam/0c1c206a5b6c5f7f15a04b08ed00651f2c640049 I do not close this bug yet because not tested under Windows. Maik Thank you for your quick answer. Indeed, it seems that the description of the path is wrong. Not onyl the slash in front of the drive letter, but also the double-slash before the xsl-file. The requested path exists and the xsl-file is stored in it. Stephan I start to rebuild the windows installer now. There will be updated in one hour. Gilles Caulier Installer build is done. Uploading in GDrive under progress : https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM Gilles Caulier Many thanks for your correction. The Gallery vould be cerated and it works! BUT!!!! All files and folders within the specified directory are obviously deleted before. Because I specifid my Pictures-folder, everything is deleted (and could't be found anywhere). This is really a great pitty! Stephan You want mean the target directory used to export the gallery ? Yes, this must be a temporary area. You are right. We must fix this behavior. Gilles Caulier Strangely we remove only recursively the theme directory. So that the copy does not fail. So even if the directory (pictures) contains all the images, nothing is deleted. Maik The original pictures are placed in directory X:\ The output directory was set to : C:\Users\xxxxx\Pictues\ Everything which was placed in this output directory before was deleted. The pictures in the source directory are all well. The galery was created afterwards and everything which belongs to the galery was placed perfectly. The error is that all things which are already in the target directory are deleted without any warnings. There is also no comment, that one should use a temporary directory. Git commit b576e320fe571afde7026d18dce84c3d06e6ff62 by Maik Qualmann. Committed on 04/06/2017 at 20:11. Pushed by mqualmann into branch 'master'. remove only the theme dir in the destination URL FIXED-IN: 5.6.0 M +2 -1 NEWS M +2 -4 utilities/assistants/htmlgallery/generator/gallerygenerator.cpp M +1 -1 utilities/assistants/htmlgallery/generator/gallerytheme.cpp https://commits.kde.org/digikam/b576e320fe571afde7026d18dce84c3d06e6ff62 @Gilles: just a short question: have you had a chance already to check Maiks fixes and to rebuild the windows installer? If so, I would try out the fix in a sandbox whether it will work now. THX in advance Stephan The patch is already included in source code and Windows installer re-build : https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM Gilles Caulier @all: THX a lot. The creation of a HTML Gallery is currently working without deleting any other directories or files within the target directory. Thank you for your great work. Just for you as an information: if you're creating a second or more additional gallery in the same target directory, the "index.html" file will point only to the last created gallery. The galleries created before are hard to access afterwards. Perhaps, this might be a good idea for the improvement of this great feature. Kind greetings, Stephan |