Error executing ImageMagick - Return value: -1 Error executing ImageMagick - Return value: -1
 

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

Error executing ImageMagick - Return value: -1

Started by thkiat, March 24, 2004, 05:33:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thkiat

I have the following error message, please help!


The picture 'albums/userpics/10001/Winter.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: -1



Warning: exec(): Unable to fork [c:/ImageMagick/convert -quality 80 -antialias -geometry 133x100 "C:\Inetpub\album\albums\userpics\10001\Winter.jpg" "C:\Inetpub\album\albums\userpics\10001\thumb_Winter.jpg"] in C:\Inetpub\album\include\picmgmt.inc.php on line 131

hyperion

Is that the path to convert.exe?  Did you actually test IM on the command line before trying to run it with CPG?   Did you set the environment shortcut variable? Did you set the permissions correctly?
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

thkiat

The path is correct. Tested IM on command line and it worked. The permissions were set correctly. Anyway, I don't know what you mean by "set the environment shortcut vatiable?"

It actually worked well but I have this error after set up Watermarking as per instructions at http://forum.coppermine-gallery.net/index.php?topic=1467

Please help.

Joachim Müller

well, then you have probably messed with the mod (not applied properly). Revert to the original coppermine files and settings (keep a backup of your current files though). Post feedback if this solves your issue. If yes, re-apply the mod and test again.

GauGau

thkiat

Reverted to the original coppermine files and setting...... same error...
Uninstalled and installed IM..... same problem.....
Will try to uninstalled and installed the whole coppermine program now.... hope it works....

thkiat

Uninstalled everything but encountered this while trying to reinstall coppermine. Error message:-
Warning: exec(): Unable to fork [c:/ImageMagick/convert images/nopic.jpg albums/userpics/im.gif] in C:\Inetpub\foto\install.php on line 86

Warning: getimagesize(albums/userpics/im.gif): failed to open stream: No such file or directory in C:\Inetpub\foto\install.php on line 87

Warning: unlink(albums/userpics/im.gif): No such file or directory in C:\Inetpub\foto\install.php on line 88

Please help!

Joachim Müller

the documentation says to CHMOD the include and albums folder 755 or 777. Obviously you can't do that in Windows, but there's an equivalent there as well: you'll have to set the permissions in the file system (and the IIS console as well). This has been asked quite often, please search the board for "chmod AND windows".

GauGau

sigepjedi

Im having a similar problem:

Error executing ImageMagick - Return value: 1

Everything was working 100% fine, and no modifications have been made to any files. Im wondering if there is a locking issue with ImageMagic or something? Im on windows 2000 platform.

Also, it seems that some people are still able to upload images, but when i try to upload currently it returns:


----------------------------------
The file 'albums/userpics/33JENN_SING.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 1
----------------------------------

Thanks in advance for help on this!

Joachim Müller

your issue is not similar, it's different:
QuoteReturn value: -1
vs.
QuoteReturn value: 1
Basically, this is a matter of server setup, and it's hard to say what went wrong. Just some hints: make sure the pic you're trying to upload is known-good. Make sure the permissions on ImageMagick's convert.exe haven't changed (I_USR and I_FOOBAR both need read/execute permissions). Make sure the path in coppermine's config is correct. If you're webhosted, ask your webserver admin if something has changed. If you're self-hosted, check your logs.

GauGau