[Solved]: Unable to upload pictures on new install [Solved]: Unable to upload pictures on new install
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: Unable to upload pictures on new install

Started by Matthews, July 05, 2009, 11:50:04 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Matthews

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

Matthews

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!

cmbmusic

Quote from: 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!

Thanks for posting your results and findings.  solved my problem too.  Although I have no idea why the imagemagic stopped working.

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.