coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: mavensophie on October 28, 2009, 02:57:25 AM

Title: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: mavensophie on October 28, 2009, 02:57:25 AM
I have an installation on one site by hostgator: the software came up without me changing anything with imagemagick error 1
I installed coppermine gallery on another site, worked for a month, then came up with the same error. The staff reinstalled imagemagick, same error.
I installed coppermine gallery on a third server, first it was error 127, found the correct path to imagemagick, but it still comes up error 1

I have pre-processed the pictures with irfanview on my local machines, uploaded them, still error 1. made sure jpeg handling is installed, still error 1.

tried gd2, got error message: Unable to create thumbnail or reduced size image.

I have run the test.php in a 2007 support thread... nothing happened.

I am at my wits end. What could be the problem? I have a client who shoots more than a thousand pictures a month... and he is yelling at me.

Please help. Thank you.
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: Jeff Bailey on October 28, 2009, 03:09:56 AM
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Make sure all folders under and including "albums" dirs are 777 or 755
Make sure you are not exceeding your upload or storage limits.
Hoe that solves it for you.  :)
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: mavensophie on October 28, 2009, 02:56:45 PM
this last hosting account is a 550 dollar a month account with its own server...
commandline use of the 'convert' tool works

#file screenshot-1.png
        screenshot-1.png: PNG image data, 649 x 194, 8-bit/color RGB, non-interlaced

#convert -thumbnail 200x200 -format jpg screenshot-1.png screenshot.jpg

#file screenshot.jpg
screenshot.jpg: JPEG image data, JFIF standard 1.01

Same was the situation on another account; commandline works, through coppermine it doesn't.
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: phill104 on October 28, 2009, 06:00:05 PM
Are you saying you used your hosts built in installer? I am guessing that is true as imagemagik was set by default and this is one sign of an install done through such installers.

If that is the case, download a fresh copy from this very site and follow the upgrade instructions.

Once you have done that, do everything outlined here.

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

It is obvious to me that there is a permissions or ownership issue, so do as suggested and we can look into it.

If you used your hosts installer you will probably find that it set the ownership of the files incorrectly. When you run the command line you have root rights so that takes precedence, but when coppermine tries to do it it does not have rights as it is in a different group.

In future, please obey the board rules and post a link to your gallery.

http://forum.coppermine-gallery.net/index.php/topic,55415.0.html
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: mavensophie on October 28, 2009, 07:25:34 PM
I changed the permissions of the uploaded folders with images in them to 777, and that resolved the issue.

the gallery is at http://www.portraitsofnewyork.com

thank you for the help
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: Joe Carver on October 28, 2009, 07:51:36 PM
@mavensophie,

Your gallery version is out-dated and vulnerable to hacking....(and almost antique)

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

Upgrade it today.
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: Joachim Müller on October 29, 2009, 08:18:43 AM
@Everybody in this thread: you're all trying to help, thank your for that. But the "official" and important statement is the one Phill has made: auto-installers are bad and go unsupported from us.

@mavensophie: Perform an upgrade to the most recent stable release (currently cpg1.4.25) as suggested in the docs that come with coppermine, section "upgrading". Everything else doesn't apply in this case. If you still have issues after having done that, do exactly as suggested in the docs, section "asking for support on upload issues". You have posted all sort of other, unrelated stuff in your initial posting that is therefore quite irrelevant.
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: mavensophie on October 29, 2009, 01:56:43 PM
THANK YOU. I am uploading the new version manually now, and the changing the uploaded album permissions solved my issue. thank you for your help Please close this thread
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: Joachim Müller on November 02, 2009, 12:02:48 AM
Quote from: mavensophie on October 29, 2009, 01:56:43 PMPlease close this thread
Please resolve your thread as suggested per board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631).
Title: Re: Error executing ImageMagick - Return value: 1 latest version 1.4x
Post by: mavensophie on November 02, 2009, 12:56:30 AM
ok, SOLUTION:  the problem was that the newly uploaded image directories that I uploaded into the albums directory were the default 755 permission, when I changed them to 777 the Imagemagick error message disappeared.

this solved my problem.
Thank you for your help, especially the guy who suggested I change my folder permissions.  And thank you to Joachim for keeping us all straight.