_sudden_ thumbnail generation/image file recognition problem _sudden_ thumbnail generation/image file recognition problem
 

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

_sudden_ thumbnail generation/image file recognition problem

Started by kaiyen, March 08, 2007, 07:24:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kaiyen

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

kaiyen

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

ugh.
thanks,
allan

Stramm

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

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

Stramm

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

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

Stramm



Stramm

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

Okay.  guess that got corrupted somehow.  weird.

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

allan