coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: noworyz on November 29, 2005, 06:43:43 AM

Title: non photo files messed up
Post by: noworyz on November 29, 2005, 06:43:43 AM
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?
Title: Re: non photo files messed up
Post by: Joachim Müller on November 29, 2005, 09:40:59 AM
when going to the url you refered to I get a 403 forbidden error. Marking this thread as "invalid"
Title: Re: non photo files messed up
Post by: noworyz on November 29, 2005, 09:50:17 AM
I was fixing something at the time you visited.  please try it again!
Title: Re: non photo files messed up
Post by: Joachim Müller on November 29, 2005, 10:03:18 AM
please PM me an admin account
Title: Re: non photo files messed up
Post by: noworyz on November 30, 2005, 12:13:09 AM
edited
Title: Re: non photo files messed up
Post by: Joachim Müller on November 30, 2005, 08:38:17 AM
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
Title: Re: non photo files messed up
Post by: noworyz on November 30, 2005, 09:05:02 AM
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!
Title: Re: non photo files messed up
Post by: Joachim Müller on November 30, 2005, 09:13:20 AM
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?
Title: Re: non photo files messed up
Post by: 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.

Is the image folder supposed to be chmodded to a certain number?
Title: Re: non photo files messed up
Post by: Joachim Müller on November 30, 2005, 09:47:01 AM
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.
Title: Re: non photo files messed up
Post by: noworyz on November 30, 2005, 10:30:52 AM
That fixed the problem!  I wonder what was going on?

Thanks a ton for you help!  Hopefully everything is fixed now!
Title: Re: non photo files messed up
Post by: Joachim Müller on November 30, 2005, 10:52:44 AM
Quote from: noworyz on November 30, 2005, 10:30:52 AM
That fixed the problem!  I wonder what was going on?
Possible reasons: Anyway, glad it's fixed. Remember to disable the temporary admin account that you have given me. Marking this thread as "solved".
Title: Re: non photo files messed up
Post by: fworsley on December 25, 2005, 09:49:28 PM
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?
Title: Re: non photo files messed up
Post by: fworsley on December 26, 2005, 08:54:41 PM
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.
Title: Re: non photo files messed up
Post by: lamama on August 12, 2006, 05:40:42 PM
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.

Title: Re: non photo files messed up
Post by: Joachim Müller on August 13, 2006, 08:44:42 AM
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.
Title: Re: non photo files messed up
Post by: lamama on August 13, 2006, 09:45:59 PM
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.  ::)