This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem generating reports with Tellico + images

Tags: None
(comma "," separated)
krisbee
Registered Member
Posts
6
Karma
0
OS
Hello...

I am using tellico 2.2 (but have also compiled and tested the new version as well), and when I try to generate any report with images, I get the following error in my console:
Code: Select all
tellico(4633) Tellico::Export::HTMLExporter::writeImages: unable to write image file:  "/tmp/kde-krisbee20107MBtX3/tellicoBujhhJ/" "102a50b05867c6e3396565fd0ddf62ee.jpeg


However, I don't have this error when I try to generate an image list report - the images show just fine.

Looking at the html from the export with the broken links/error you can see that it points to the wrong place (in this case, the file name is tri for the tri column, then it points to the subdirectory tri_files which is correct, but then just points to the name of the database's subdirectory without pointing to the filename...

Code: Select all
<td><table><tbody><tr>
<td><img class="float" alt=" " src="tri_files/moviedatabase_files" height="150" width="104"></td>
<td>
<span class="title">'Burbs, The</span><br><span class="info">[1989; Dante, Joe]</span><br><span class="plot">A suburbanite cancels his vacation trip to help keep watch on his creepy new neighbor. When a grouchy neighbor disappears the watch group descends on …</span>
</td>


When generating this report, the console displays this:
Code: Select all
tellico(4633) Tellico::Export::HTMLExporter::copyFiles: can't copy  KUrl("file:///home/krisbee2010/Desktop/tri_files/moviedatabase_files")
tellico(4633) Tellico::Export::HTMLExporter::copyFiles: "/home/krisbee2010/Documents/moviedatabase_files/ is a folder, but a file was expected."


When I go to the tmp directory, the permissions are correct, and there are all of my images in that directory, so I am not sure what is going on...

I am using mandriva 2010.2 - is the issue with whatever the htmlexporter is?

Thanks in advance!
robbystephenson
KDE Developer
Posts
384
Karma
1
OS
krisbee wrote:is the issue with whatever the htmlexporter is?
Yes, it does appear to be a bug. Can you help me verify that I have the correct fix? Find the Tri-Column.xsl file for your installation of Tellico.

And edit line 199 or so, where it used to say
Code: Select all
<xsl:with-param name="image" select="key('imagesById', $id)"/>
change it to
Code: Select all
<xsl:with-param name="image" select="$img"/>

Let me know if that works.

To find the right file to edit, you can run
Code: Select all
kde4-config --path data --locate tellico/report-templates/Tri-Column.xsl
krisbee
Registered Member
Posts
6
Karma
0
OS
That fixed it! :)

Thank you so much - I only really run two reports, and the Tri was the most important, and now it works!!


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell