Hello,
last piwigo, fresh install.
I wonder if I didn't got a bug.
I'm working on the charlie's content code and now testing the thumbnail generation.
I use a script to convert a random jpg to the thumnail folder and size. I use nearly the same one for videos and pdf, but with a different result.
No problem for videos as you can see here:
http://dodin.info/~piwigo/piwigo/index.php?/category/3
html source code of the page:
<img src="./galleries/video/20140329-craq/pwg_representative/20140329-craq-05-bymyself-val.jpg" alt="20140329-craq" title="20140329-craq - display this album">
all correct
so why do I have for the pdf:
http://dodin.info/~piwigo/piwigo/index.php?/category/5
the html code:
data-src="i.php?/galleries/documents/2001/pwg_representative/2001-LaDepeche.fr-th.jpg" alt=(...)
notice the -th aded just before the .jpg, that, of course, do not exists in the original file name.
Notice that the pdf document is correctly displayed, only the thumbnail have problem. Notice also that the displayed icon (!) shows a file name problem.
thanks
jdd
Last edited by jdd (2014-04-06 12:10:42)
Offline
Hi
the url is indeed wrong
Why? well don't know ^^ it's up to you
the dot in the name? wrong function called?
Offline
flop25 wrote:
the dot in the name?
good guess!
piwigo do not like double dotted file names, removing the excess dot solves the problem.
so seems the piwigo doc is incomplete
http://piwigo.org/doc/doku.php?id=user_ … dd_picture
"File name and album limitations: the name of directories and files must contain only letters, numbers, ”-”, “_” or ”.”. No blank spaces, nor accentuated characters."
add "one single dot".
thanks a lot
jdd
Last edited by jdd (2014-04-06 13:44:05)
Offline
that's weird. What's your local config?
It might be a bug in i.php... could you also check in the database what are the values in piwigo_picture for that picture?
Offline
Well...
I franckly do not understand.
To test the dot problem, I just removed the excess dot in the two filenames and re sync the database, so I didn't have anymore the faulty entry.
So to answer your question I copied the two files, re-adding the dot on the fly... and no problem for thumbs.
I removed the files completely, sync. re-copied from the local source to the site, re-sync, no problem.
is there somewhere on the server a log file where I could look at?
looks like a transient problem???
(server and local client are all together linux)
thanks
jdd
Offline
wow...
nothing changed? honestly? the pdf were there before updates?
there is no such debug log.
weirder
Offline
flop25 wrote:
wow...
nothing changed? honestly? the pdf were there before updates?
there is no such debug log.
weirder
no update, fresh install, only used to test the plugin :-)
thanks
jdd
Offline
deeply sry to not being very helpfull
Offline
flop25 wrote:
deeply sry to not being very helpfull
don't, you made me understand it's a temporay error. So many reason can be seen...
jdd
Offline