Advanced search  

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]

Pages: [1]   Go Down

Author Topic: _sudden_ thumbnail generation/image file recognition problem  (Read 4389 times)

0 Members and 1 Guest are viewing this topic.

kaiyen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
_sudden_ thumbnail generation/image file recognition problem
« on: March 08, 2007, 07:24:21 pm »

Okay.
-I have searched the archives
-folder permissions are all 755
-I have set debug mode
-I have set group permissions to 1/0 as per various documentation
-the "define ( 'SILLY_SAFE_MODE' , 1 ) ;" is there in config.inc.php
-GDlib 2 is installed, and HAS BEEN RECOMPILED as per my request by hosting company due to problems
-everything worked before (uploading, recognizing files, generating thumbnails, inserting into folder)

What's happening is this.  I upload 1 file, and I get:
---
The file you have uploaded is not a valid image !

File: /home/kaiyen2/public_html/photos/coppermine/db_input.php - Line: 370
---

If I do a batch upload, all of the new files in that folder show up as "unknown" and I get a DP when I try to insert them.  Again, folder permissions are set appropriately.  I have tried this from an existing folder that has worked before and a new one I created when FTP'ing the files in. 

If I click on one of the "unknown" icons, it shows me the full image, all there, as a jpeg, looking all fine.  So the file is there, and has apparently transferred properly.  But coppermine is not recognizing the file.

IMPORTANT:  the failure to recognize the file type is specific, as far as I can tell, to coppermine, but I am also have a thumbnail generation issue with pixelpost, a photoblog software that is also configured to use GD.  Now, there, it indicates that GD is installed, working, and with JPEG support, but thumbnails are not working.  This is possibly related to what's going on at least partially in coppermine (I mean, thumbnails are not generating in the batch upload view), but the invalid file format issue is confusing.

I'm not sure which debug window to paste in here.  But the site is at photos.kaiyen.com/coppermine and the user is test/t3st.

Thank you for any help.  I tried to follow all the directions for posting, and I deeply, deeply apologize if I missed something.  I tried, I really did.

allan
« Last Edit: March 08, 2007, 07:58:07 pm by GauGau »
Logged

kaiyen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #1 on: March 08, 2007, 07:30:54 pm »

Oops - sorry for the wrong forum.  I wasn't sure if it was really an upload problem or not. 

ugh.
thanks,
allan
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #2 on: March 08, 2007, 07:35:57 pm »

Never post admin accounts as this can be used to take over your server.
I've changed password and created a testuser account

username: cpguser
password: test

kaiyen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #3 on: March 08, 2007, 07:38:13 pm »

Sorry.  I deleted the user.  I just know that non-admins can't see the batch add files option and thought someone would need that.  That was a pretty bad brain-freeze, though...

allan
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #4 on: March 08, 2007, 07:41:52 pm »

I've uploaded a pic (http)... that works as expected (check admin approval to verify). Post a deep link to some files you wanted to batch add

kaiyen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #5 on: March 08, 2007, 07:45:08 pm »

What is a deep link?

So it looks like it really has to do with the actual files I'm trying to upload.  Something...happened to them.  Okay, so that solves that issue.  I'll try re-creating them and see what happens.

thanks.  I thought that since they showed up fine when I opened the file itself it must have been okay, file-wise.  Any ideas why a jpg file, that can open as a jpg and looks like a jpg just about everywhere, would not be recognized by cp?

allan
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #6 on: March 08, 2007, 07:46:54 pm »

deep link: a direct link to the images
like: http://photos.kaiyen.com/coppermine/albums/batch_add1/myimg_01.jpg

kaiyen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #8 on: March 08, 2007, 07:55:01 pm »

edit:

http upload of that file didn't work either (nor on my own gallery) -> use a valid image. This one displays in a browser but doesn't seem to have a valid jpg header. Open it with eg. Photoshop and save as new file

kaiyen

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: _sudden_ thumbnail generation/image file recognition problem
« Reply #9 on: March 08, 2007, 07:57:09 pm »

Okay.  guess that got corrupted somehow.  weird.

thanks for the help.  consider it solved, I guess.  thanks for the ridiculously fast responses.

allan
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.