forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Matthews on July 05, 2009, 11:50:04 pm

Title: [Solved]: Unable to upload pictures on new install
Post by: Matthews on July 05, 2009, 11:50:04 pm
I just created a new Coppermine board and have so far been unable to upload any images.  I followed all of the instructions in the documentation that came with the software: made sure the user group could upload files (even though it's the Admin account, it never hurts to be sure), and made sure that the 'Visitors can upload files' box was checked.  Whenever I tried to upload files, they would be successfully uploaded, I would then be given the option to choose an album, but I would then get a message 'The previous file could not be placed.' followed by 'You have successfully placed all the files.'

So then I came to the forum and carefully followed the steps outlined in the troubleshooting FAQ's: Set File upload boxes to "1", set URI upload boxes to "0", and set No. of boxes to "fixed".  I then tried to re-upload a single pic, and got the following error:
The file 'albums/userpics/Alfie~1.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127

Cmd line :
/usr/bin/convert -quality 80 -antialias -geometry 91x100 'albums/userpics/Alfie~1.jpg' 'albums/userpics/thumb_Alfie~1.jpg'

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

File: /home/matthews/public_html/photo_archive/db_input.php - Line: 402


So, I created a test account and am posting here in hopes of getting some help.

Thanks in advance for your help.

SITE: http://stmatthewsoflatham.org/photo_archive/index.php
Username: TestAccount
Password: test123
Title: Re: Unable to upload pictures on new install
Post by: Matthews on July 06, 2009, 12:04:07 am
Nevermind... :-[ :-[ :-[  I just realized what the problem was.  My host either doesn't have ImageMagik on the server, or I have something set wrong.  Either way, problem solved.  I checked the server PHP settings and saw that it did support GD, so I just changed the image resize method to GD version 2.x, and voila, works like a charm.

Thanks a ton to the developers for a great image gallery!  Keep up the good work!
Title: Re: Unable to upload pictures on new install
Post by: cmbmusic on July 06, 2009, 06:32:02 am
Nevermind... :-[ :-[ :-[  I just realized what the problem was.  My host either doesn't have ImageMagik on the server, or I have something set wrong.  Either way, problem solved.  I checked the server PHP settings and saw that it did support GD, so I just changed the image resize method to GD version 2.x, and voila, works like a charm.

Thanks a ton to the developers for a great image gallery!  Keep up the good work!

Thanks for posting your results and findings.  solved my problem too.  Although I have no idea why the imagemagic stopped working.
Title: Re: Unable to upload pictures on new install
Post by: phill104 on July 06, 2009, 09:06:11 am
Matthews,

I'm guessing that as your instal defaulted to imagemagik you used your hosts installer, probably fantastico? This installer is a third party thing and has many problems as outlined in a lot of threads on this board and is therefore something we can neither recommend nor support.

In your case you are also running a few versions behind (another drawback of this installer is that hosts rarely are up to date).

<!--Coppermine Photo Gallery 1.4.20 (stable)-->

This is leaving you at risk

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade_why

The current release is 1.4.25. Simply download it and follow the upgrade instructions in the docs and you will be fully up to date with a propper copy of the software. It shouldn't take long. If you run into any problems start a thread in the upgrading board and we will be glad to help.