Problems with video thumbnails Problems with video thumbnails
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Problems with video thumbnails

Started by roberto8080, September 19, 2005, 07:55:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

roberto8080

Hello I just installed CPG (great!) but it doesn't show generic thumbnails for videos.

For example:
http://www.roberto.metaluxo.com/fotogaleria1/thumbnails.php?album=4

The last file is a video, but I can't see the generic thumbnail.

The webhosting is Apache 1.3 on FreeBSD and PHP 4.3.11, this is weird because I tested the same file locally (Fedora Core 4, Apache 2.0, PHP5) and it worked fine. The thumb_movie.jpg file is there, but for a reason is not assigned to the video.

Any help?

roberto8080

The problem isn't just with video but with any other file besides images (xls, pdf, swf...), when I insert them in batch mode the preview is just a broken image, and when I try to recreate the thumbnails using the Admin tools, the thumbs for the images are OK but the thumbs for videos says:

ERROR creating:$thumb

roberto8080


roberto8080

I was thinking to just hard coded (if the variable is empty just assign a default image)  but I can't find where CPG determine what thumbnail should use for videos or Excel files, etc...

Joachim Müller

now this is strange: even with english as language and the default theme classic, the <img src> doesn't get populated, this is part of the html output I get on your page:         <td valign="top" class="thumbnails" width ="25%" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">

                        <tr>
                                <td align="center">
                                        <a href="displayimage.php?album=4&pos=7"><img src="" class="image" width="0" height="0" border="0" alt="Video_020505_002.asf" title="Filename : Video_020505_002.asf
Filesize : 6289KB
Dimensions : 0x0
Date added : Sep 18, 2005"><br /></a>
                                        <span class="thumb_title">4 views</span>
                                       
                                </td>
                        </tr>
                </table>
        </td>
Did you modify any of coppermine's core files?

roberto8080

Yeah very weird, I just modified the theme and the Spanish language file.

Anyway, I did a fresh install and everything works fine now (http://www.roberto.metaluxo.com/fotogaleria), I suspect that some files were corrupted during the previous transfer, I'm not sure.

But now everything is fine :D Thanks.

Trev98

Quote from: roberto8080 on September 26, 2005, 08:14:34 PM
Yeah very weird, I just modified the theme and the Spanish language file.

Anyway, I did a fresh install and everything works fine now (http://www.roberto.metaluxo.com/fotogaleria), I suspect that some files were corrupted during the previous transfer, I'm not sure.

But now everything is fine :D Thanks.
OK, I know this is an old post but I wanted to respond since I had this exact same problem. In my situation, I had changed the default thumbnail prefix to "tn_" instead of "thumb_". So, when CM went to look for the PDF, DOC, video thumbnails, it used the new prefix instead of the default, which is how the files are named. The fix for me was renaming everything with "thumb_" (for example, "thumb_pdf.jpg") to "tn_".

There's probably a more elegant fix by editing the PHP to avoid using the custom thumbnail prefix for these images, but whatever. This works. Hope that helps someone else too.  ;D

Joachim Müller

issue only exists in outdated versions of coppermine, has been fixed in later versions. Update to the most recent version cpg1.3.5