coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: pwilly on February 20, 2006, 10:29:00 PM

Title: transferred site, now can't upload...
Post by: pwilly on February 20, 2006, 10:29:00 PM
here's the log:

USER:
------------------
Array
(
    [ID] => c7afcb955f5cb26c638dd2efa5e312ef
    [am] => 1
    [liv] => Array
        (
           
Title: Re: transferred site, now can't upload...
Post by: Nibbler on February 20, 2006, 10:32:58 PM
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 20, 2006, 10:48:54 PM
nibbler, I've already been there. how else would I have posted the debug info?

I've now successfully uploaded 2 pics, both under 10k. That's all that I can get to work.
Title: Re: transferred site, now can't upload...
Post by: Nibbler on February 20, 2006, 11:06:10 PM
Please do as suggested or we can't help you.

"When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges."

Nowhere do we ask you to post debug output.
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 21, 2006, 05:46:16 PM
ah, sorry I didn't see that bit. here you go:

UN: testme
PW: testme
URL: http://theshutter.co.uk/galleries/

Login is on the left. TIA!
Title: Re: transferred site, now can't upload...
Post by: Nibbler on February 21, 2006, 06:20:48 PM
Failed to create directory albums/userpics/10182 !

File: /home/ts3909/public_html/galleries/db_input.php - Line: 229


Warning: mkdir(albums/userpics/10182): Permission denied in /home/ts3909/public_html/galleries/db_input.php on line 228

CHMOD albums/userpic to 777/755 with your FTP client.
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 21, 2006, 07:11:49 PM
Thanks for your help. I had 755, just switched to 777 and I got this:

Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209

Warning: imagecreatefromjpeg(): './albums/edit/mHTTP_temp_7a02adf5.jpg' is not a valid JPEG file in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209
Title: Re: transferred site, now can't upload...
Post by: kegobeer on February 21, 2006, 07:25:21 PM
Is that image a valid JPEG?  Usually when GD reports an error, it's because of a bad image.  Your jpeg images must be in RGB format, not CMYK.
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 21, 2006, 07:49:17 PM
I just tried a pic right from the camera and got this:

The following uploads encountered errors: 
File Uploads: 
File Name/URL Error Message
1. Boat Show 04 004.jpg Not a GD extension.


how can that be?
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 21, 2006, 07:57:34 PM
I've just tried a variety of other jpgs and this seems to be the most common error:

Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209

Warning: imagecreatefromjpeg(): './albums/edit/mHTTP_temp_c9675ab8.jpg' is not a valid JPEG file in /home/ts3909/public_html/galleries/include/picmgmt.inc.php on line 209
Title: Re: transferred site, now can't upload...
Post by: Nibbler on February 21, 2006, 08:03:30 PM
Please provide a picture that does not work so we can test it.
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 21, 2006, 08:08:24 PM
attached
Title: Re: transferred site, now can't upload...
Post by: kegobeer on February 21, 2006, 09:16:43 PM
Have you tried images that haven't come from your camera?
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 21, 2006, 09:27:43 PM
I've also tried some I made with my graphic program. And the one above is a pic that I copied from the gallery already...
Title: Re: transferred site, now can't upload...
Post by: kegobeer on February 22, 2006, 01:13:08 AM
Have you reported those errors to your host?  There could possibly be something wrong with the PHP/GD package.
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 22, 2006, 04:04:24 PM
unfortunately, it's my own box. how would I know if that is the problem? and what is normally done to fix soemthing like that?
Title: Re: transferred site, now can't upload...
Post by: kegobeer on February 22, 2006, 10:51:52 PM
Your own box as in your personal computer, or as in a dedicated server located elsewhere that you control?
Title: Re: transferred site, now can't upload...
Post by: pwilly on February 23, 2006, 06:03:33 PM
it's my own dedicated server
Title: Re: transferred site, now can't upload...
Post by: kegobeer on February 23, 2006, 07:37:00 PM
I would install ImageMagick, switch from GD2 to ImageMagick for the resize method, and see if your uploads work.  If so, you definitely know there's a problem with either GD or the PHP functions that work with GD.

We can't really help with installing ImageMagick.  You'll have to figure that out on your own.  (One of the benefits of having your own dedicated server.)