coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: SpookyDan on July 28, 2009, 01:26:44 AM

Title: [Solved]: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 01:26:44 AM
I know, I know... I have searched the forums and tried everything I could find with no luck.

I get these errors:

During batch add:
"Unable to create thumbnail or reduced size image."  

During User Upload:
The file 'albums/userpics/10001/Lebow01s.jpg' can't be inserted in the album
Unable to create thumbnail or reduced size image.
File: /db_input.php - Line: 402

During batch add even though it says unable to create thumbnail it actually does.  The thumbnails are created and dropped in the album folder.  Still nothing shows up in the album.

Worked fine before a recent update to 1.4.25
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 01:34:17 AM
Forgot the link:  www.urbanatrophy.com
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 02:11:16 AM
Test Account:

UN: test
PW: password
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joe Carver on July 28, 2009, 03:18:02 AM
You  need to follow the steps outlined in the docs.

4.11.4 Upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) 

You have skipped ahead to section  4.11.5
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 03:24:20 AM
Quote from: i-imagine on July 28, 2009, 03:18:02 AM
You  need to follow the steps outlined in the docs.

4.11.4 Upload troubleshooting (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble) 

You have skipped ahead to section  4.11.5

I have done those steps.  Twice.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joachim Müller on July 28, 2009, 07:31:35 AM
When trying to upload I get
QuoteYou don't have permission to perform this operation.

File: /db_input.php - Line: 286
, which is caused by the line    case 'picture':
        if (!USER_CAN_UPLOAD_PICTURES) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
in db_input.php, which is funny, as you never should see this error message in the first place - there shouldn't even be a link to the upload screen if the user doesn't have upload privileges. The error message in that place is a protection against bots and not against humans, so there is something going terribly wrong on your gallery.
Did you apply any custom hacks to the core code?
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 02:46:46 PM
The only changes I have done on my forum are basic colors and the addition of the header image.  Maybe a Captcha plug-in a while back.

I have another coppermine thru the same hosting company that I do all the same upgrades/mods to and it is running fine.  I dunno whats wrong with this one.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joachim Müller on July 28, 2009, 03:06:41 PM
Quote from: SpookyDan on July 28, 2009, 02:46:46 PM
The only changes I have done on my forum
Copperminme is not a forum.

Quote from: SpookyDan on July 28, 2009, 02:46:46 PM
I dunno whats wrong with this one.
Re-apply permissions on the albums folder and everything within it as suggested in the docs. Don't just, check, but apply those permissions.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 03:13:57 PM
Quote from: Joachim Müller on July 28, 2009, 03:06:41 PM
Copperminme is not a forum.
Re-apply permissions on the albums folder and everything within it as suggested in the docs. Don't just, check, but apply those permissions.

I have.  I tried applying 777 to albums and all sub folders and files and it didn't work.  I than again tried it with 755 just to be sure and that didn't work either.  It took SmartFTP a good 20-30 minutes to change all the files each time and i did random checks in different folders to be sure it changed everything.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 03:26:03 PM
sorry i meant 775 not 755
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joe Carver on July 28, 2009, 04:53:33 PM
I could not see it in the debug...so then I must ask. What are you using for your images - GD or ImageMagick?
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 04:54:34 PM
It is set to GD2.  I have also tried GD1 with the same results.  Imagemaverick didn't work at all.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joachim Müller on July 28, 2009, 05:17:53 PM
There's no such thing as "ImageMaverick" - it's "ImageMagic" and you can only use that if your server supports it. You can't guess, you need to figure out by looking at the resources suggested in the FAQ.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 05:32:46 PM
Ok...  it would be helpful if YOU could help me with my technical problem and stop picking out my miss wordings, you know what I meant.

And again, I have followed the upload troubleshooting guidelines with no success.  I have searched the forums and tried other suggestions with no success. 
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joachim Müller on July 28, 2009, 05:45:00 PM
The error message
QuoteThe file 'albums/userpics/10003/filename.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image
means that the script can't write into the folder http://www.urbanatrophy.com/albums/userpics/10003/, that's why I said that you need to set permissions. If that doesn't help, you need to ask your webhost for support: maybe they need to CHMOD the folder http://www.urbanatrophy.com/albums/ and everything within it for you (depending on your server setup); maybe they need to CHMOD for you.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 05:53:59 PM
Yea, they are/have been set correctly.

Screen shots attached.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joe Carver on July 28, 2009, 07:05:56 PM
From here I can only guess and suggest what I myself would try. I am also very unsure about your Yahoo Traffic Server settings and how they might be affecting your Coppermine.


Those are some things I would try, while keeping the "do/undo" close by for confirmation.

Good Luck
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 08:35:10 PM
Ok I tried:

-removing plug-ins
-installed filezilla and double checked permissions
-did version check

I had 3 questionable things (attached screenshots)

My other coppermine install www.danhaga.com (same host) has the same issues and its working fine.

2 of the files I cant upload because yahoo doesnt like the "!" in the file name.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 09:08:52 PM
Just a heads up to those of you that have been helping, some of your pictures have been uploading despite the errors.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 28, 2009, 11:23:28 PM
Ok, here is a new development...  I tried some different images, some coppermine smileys.  I was able to upload them fine thru both image upload and batch add.

At first I thought maybe a file type problem so I tried saving my images as a gif and my images still didnt work. 

Next I figured size issue so I resized my images to 15 pixels and saved as a gif.  Still couldn't upload them.

Just as a test I supersized a coppermine smiley to 500 pixels and tried uploading it and it worked!

What is going on here???

Just for reference the images I want to work are here: http://www.urbanatrophy.com/albums/Lebow/

Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Nibbler on July 28, 2009, 11:36:34 PM
Double check your config settings. Seems like your 'Max width or height of an intermediate picture' is set to 1px.
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: SpookyDan on July 29, 2009, 12:35:19 AM
Quote from: Nibbler on July 28, 2009, 11:36:34 PM
Double check your config settings. Seems like your 'Max width or height of an intermediate picture' is set to 1px.

Dunno how it got changed but that little "1" was the cause of all those issues.  Thanks Nibbler!
Title: Re: "Unable to create thumbnail or reduced size image."
Post by: Joachim Müller on July 29, 2009, 07:54:27 AM
Quote from: SpookyDan on July 29, 2009, 12:35:19 AM
Dunno how it got changed
Usually, if that value is set to "1" this means that you have been hacked, so I strongly suggest to sanitize your gallery as suggested in the Yikes thread.

Quote from: SpookyDan on July 29, 2009, 12:35:19 AM
that little "1" was the cause of all those issues.
Great, marking thread as solved.