forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: neoncircles on March 30, 2008, 03:07:31 pm

Title: [Solved]: Upload issue
Post by: neoncircles on March 30, 2008, 03:07:31 pm
My webhost is after moving my account to a new server running php5 (the old one ran php4). Since then coppermine has been unable to upload photos as such.

In the file select, files can be selected and uploaded, but when attempting to place in album it says files cannot be placed.
If i try upload from URL it does not work at all.

Checked permissions for upload folder and they are set correctly. Webhost is unable to see much of a solution

Any ideaS?
Title: Re: Upload issue
Post by: Joachim Müller on March 30, 2008, 03:27:56 pm
Yes: do exactly as suggested in the "upload troubleshooting" section of the docs. Continue reading the "asking for support on upload issues" section. Do as suggested there.
Title: Re: Upload issue
Post by: neoncircles on April 11, 2008, 05:55:49 pm
OK, I have followed the steps in the sticky, in debug mode it gave me the following errors:

Any ideas from these....?

/upload.php

    * Notice line 1972: Undefined variable: file_failure_array
    * Notice line 1973: Undefined variable: URI_failure_array
    * Notice line 1974: Undefined variable: zip_failure_array


/include/picmgmt.inc.php

    * Notice line 205: Undefined index: OS
    * Warning line 225: unlink(./albums/edit/preview_45e3abfb.jpg) [function.unlink]: No such file or directory

/include/functions.inc.php

    * Notice line 2683: Undefined variable: i

/include/picmgmt.inc.php

    * Notice line 205: Undefined index: OS
    * Warning line 225: unlink(albums/userpics/thumb_greengrass02_-_Copy.jpg) [function.unlink]: No such file or directory
Title: Re: Upload issue
Post by: Joachim Müller on April 11, 2008, 06:13:57 pm
Nope, you haven't done as suggested. In fact, you did quite the opposite of what you're supposed to do, as nobody needs your notices - you're not even supposed to turn notices_display on.

Do exactly as I suggested in my initial reply on this thread.
Title: Re: Upload issue
Post by: neoncircles on April 11, 2008, 06:39:52 pm
Didnt turn notices display or anythin of its sort on- merely went into debug mode and followed steps...

I'll go back to the sticky and try find some (invisible) step that I have missed..... ??? ???
Title: Re: Upload issue
Post by: neoncircles on April 11, 2008, 06:55:32 pm
OK, turned out I didnt select single file upload only. Seems like an Image Magick issue,

The file 'albums/userpics/vbulletin3_logo_white.gif' can't be inserted in the album

Error executing ImageMagick - Return value: 127

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 100x23 'albums/userpics/vbulletin3_logo_white.gif' 'albums/userpics/thumb_vbulletin3_logo_white.gif'


The convert program said:
sh: /usr/bin/convert: No such file or directory


File: /home/s27769/public_html/photos/db_input.php - Line: 402



To me it seems like file permissions are odd somewhere- although they are all set to 777 where appropriate in albums?
Title: Re: Upload issue
Post by: Nibbler on April 11, 2008, 08:25:00 pm
It means either you don't have imagemagick on the server or the path is wrong. Try switching to GD2 in config.
Title: Re: Upload issue
Post by: neoncircles on April 11, 2008, 08:31:01 pm
OK it now works after switching to GD2  :D