Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Error executing ImageMagick - Return value: -1  (Read 3894 times)

0 Members and 1 Guest are viewing this topic.

thkiat

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Error executing ImageMagick - Return value: -1
« on: March 24, 2004, 05:33:46 pm »

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
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Error executing ImageMagick - Return value: -1
« Reply #1 on: March 24, 2004, 05:59:47 pm »

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?
Logged
"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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

thkiat

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Error executing ImageMagick - Return value: -1
« Reply #2 on: March 24, 2004, 06:20:11 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Error executing ImageMagick - Return value: -1
« Reply #3 on: March 24, 2004, 06:43:11 pm »

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
Logged

thkiat

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Error executing ImageMagick - Return value: -1
« Reply #4 on: March 24, 2004, 07:08:20 pm »

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....
Logged

thkiat

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Error executing ImageMagick - Return value: -1
« Reply #5 on: March 25, 2004, 05:33:41 am »

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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Error executing ImageMagick - Return value: -1
« Reply #6 on: March 25, 2004, 08:48:27 am »

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
Logged

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Error executing ImageMagick - Return value: -1
« Reply #7 on: June 06, 2004, 02:39:50 am »

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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Error executing ImageMagick - Return value: -1
« Reply #8 on: June 06, 2004, 08:01:27 am »

your issue is not similar, it's different:
Quote
Return value: -1
vs.
Quote
Return 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
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 18 queries.