[Solved, sort of]: 1.3.1 after upgrading from 1.2.1 some images are broken [Solved, sort of]: 1.3.1 after upgrading from 1.2.1 some images are broken
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved, sort of]: 1.3.1 after upgrading from 1.2.1 some images are broken

Started by Galapagos, July 30, 2004, 03:26:47 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Galapagos

Last week I updated my version of CPG from version 1.2.1 to version 1.31. At the beginning everyhing looked just fine, but tonight I noticed something strange. Some pictures are not viewable anymore. When viewing the album list the pictures are displayed as a 'dot' (just a couple of pixels). When clicked upon you won't see the picture either. Again just a couple of dots.

I figured out it probably has something to do with illegal characters in the filenames... The files I'm talking about have filenames like:
!cid_image008.jpg@01C42579[1].JPG@01C42579[1]
I know that's a really weird filename, since it doesn't even have an extension like .jpg or something. I don't know how it was possible addings these files to the album in the first place, but it surely was possible using CPG 1.2.1. There were no problems at all adding the pictures and also no problems at all viewing them. But after upgrading to version 1.3.1 I have the problems mentioned above.

For an example please go to this album on my CPG-site: http://tomdegoeij.xs4all.nl/coppermine/thumbnails.php?album=143
Username: testaccount
Password: password

The first picture shown on the first page on the album is named on the server like this:
/coppermine/albums/feestjemarieke2004/thumb_!cid_image001.jpg@01C42579[1].JPG@01C42579[1]
When using 1.2.1 it appeared on the page like this:
http://tomdegoeij.xs4all.nl/coppermine/albums/feestjemarieke2004/thumb_%21cid_image001.jpg%4001C42579%5B1%5D
After upgrading to 1.3.1 it appears like this:
http://tomdegoeij.xs4all.nl/coppermine/

So it looks like a 1.3.1 can't deal with strange filenames and 1.2.1. Since my site contains over 20,000 pictures it would be a hell of a job just to find out what pictures are faulty. Perhaps someone from this forum can hell me out on this. If the pictures worked on 1.2.1, they should be able to work on 1.3.1 I'd say.

Thanks a lot in advance!

update: using PHPMyAdmin I found out that the 22 pictures in the album mentioned above are probably the only pictures affected. So I can 'solve' the problem quite easily by changing the filenames manually. Still i think this thread is useful since other people might be dealing with the same problem. And I haven't figured out yet what causes the problem... It might be the pictures not ending on .jpg or maybe even the @, [ or ] in the filenames.

Joachim Müller

I can't understand how you could have been able to upload files without extension in the first place, using cpg1.2.1
Now that the situaton is as it is, I can't think of another solution than the one you already outlined: renaming the files both on your server and in the coppermine database. Sorry.

GauGau

Galapagos

Hi GauGau,

Thanks for looking at the problem. For me it's okay, since I can fix it quite easily. It's indeed really weird that I was able to upload those pictures in the first place. I didn't use any mods or something like that, and as far as I know I didn't mess with the config options too much.

Nevertheless, since I'm probably the only one with this problem this thread can be closed :-)

Cheers!