non photo files messed up non photo files messed up
 

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

non photo files messed up

Started by noworyz, November 29, 2005, 06:43:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

noworyz

After doing the upgrade from 1.3.5 to 1.4 I noticed that all files that are either .zip, wmv etc are messed up.

If you look at my site at http://www.egriz.com/GrizPics2/index.php?cat=16 you will see that the picture that is supposed to represent a zip file doesn't show up and it is just a tiny dot.

Any suggestions?

Joachim Müller

when going to the url you refered to I get a 403 forbidden error. Marking this thread as "invalid"

noworyz

I was fixing something at the time you visited.  please try it again!

Joachim Müller


noworyz

#4
edited

Joachim Müller

now, this is strange. I used the admin account you sent me to have a look, but I couldn't find anything out-of-the-ordinary. Did you modify any files except the theme? Is it OK to temporarily disable the "Unwanted Meta Albums" plugin just for trouble-shooting purposes?

Joachim

noworyz

that is strange.  I am still having the problems!

You can disable the plugin if you need to.  I just installed the plugin today!

The way it was before I updated was that the zip files showed this image (https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.egriz.com%2FGrizPics2%2Fimages%2Fzip.jpg&hash=a40d4ba2900838a5d5ac9a2fdf52c24c14bbc18d).  Now it doesn't show anything.  This also happens when I create a new album and havn't uploaded any files into the new album.  It should show ths image (https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.egriz.com%2FGrizPics2%2Fimages%2Fnopic.jpg&hash=41b2367363ed403ac34530d177963ba776241a37) but it doesn't.

Thanks for the help!

Joachim Müller

Hm, this is of course not expected behaviour, but I can't see why the <img> tag doesn't get populated at all. It is working on your demo, see http://coppermine-gallery.net/demo/cpg14x/thumbnails.php?album=15

Quote from: GauGau on November 30, 2005, 08:38:17 AM
Did you modify any files except the theme?

noworyz

I havn't modified any files except the theme.  I have tried other themes and the same problem occurs.

Is the image folder supposed to be chmodded to a certain number?

Joachim Müller

Quote from: noworyz on November 30, 2005, 09:28:59 AM
I havn't modified any files except the theme.  I have tried other themes and the same problem occurs.
OK, maybe some file got corrupted. Could you do a cvs checkout of the stable branch and replace all your files on the server with the files from the checkout? Make a backup first! A tutorial how to check out is available here: http://cpg-contrib.org/index.php?file=minicms/cms&id=21

Quote from: noworyz on November 30, 2005, 09:28:59 AM
Is the image folder supposed to be chmodded to a certain number?
No, it just needs r-x permissions, nothing special. http://www.egriz.com/GrizPics2/images/zip.jpg is accessible as far as I can see.

noworyz

That fixed the problem!  I wonder what was going on?

Thanks a ton for you help!  Hopefully everything is fixed now!

Joachim Müller

Quote from: noworyz on November 30, 2005, 10:30:52 AM
That fixed the problem!  I wonder what was going on?
Possible reasons:
  • one of the fixes that went into the cvs has cured your issue
  • one of your files was corrupted in the first place and got overwritten with a good one
Anyway, glad it's fixed. Remember to disable the temporary admin account that you have given me. Marking this thread as "solved".

fworsley

Hi, I am having the same problem. I followed your previous instructions and checked out the latest version from CVS, but it didn't fix the problem. Any more suggestions?

fworsley

Ok, I've figured out the problem. I have my thumbnail prefix set to "TN-" instead of the default "thumb_". Coppermine tries to find the media specific thumbnails using the $CONFIG['thumb_pfx'] variable. However, in the extracted archive the media specific thumbnails are named thumb_avi.jpg etc. So Coppermine can't find them. If I just rename them to TN-avi.jpg etc. then it works fine.

I should mention that my installation was upgraded from Coppermine 1.1 to 1.4 in one go.

lamama

Quote from: fworsley on December 26, 2005, 08:54:41 PM
I have my thumbnail prefix set to "TN-" instead of the default "thumb_". Coppermine tries to find the media specific thumbnails using the $CONFIG['thumb_pfx'] variable. However, in the extracted archive the media specific thumbnails are named thumb_avi.jpg etc. So Coppermine can't find them.

It seems like this small "bug" is still present in the actual distribution, right?

My configuration has also non-default prefixes for the thumbs, so thumb_nopic.jpg etc. are not shown.


Joachim Müller

Well, yes - if you consider this a bug, then you are right: you'll have to rename the genreric thumbs accordingly. However, what's the reason for renaming the thumbs_ prefix? Just leave it as-is.

lamama

I don't like the "long" prefixes and like to have them all the same length:
tn_ for thumbs
pr_ for preview ("normal")

Quoteif you consider this a bug
not really, but the admin interface gives the impression that they can be changed without problems. It's just a little bit confusing when you stumble upon those missing default-thumbs weeks or months later.  ::)