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: ImageMagick - Cannot execute the script  (Read 7848 times)

0 Members and 1 Guest are viewing this topic.

no1wammy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
ImageMagick - Cannot execute the script
« on: October 17, 2005, 07:38:08 pm »

I'm a newbie trying to get ImageMagick to work on my Coppermine under Windows 98. After I installed ImageMagick, I tried to integrate it with Coppermine by including the path (C:/ImageMagick on my computer). After I saved the changes, this message came up:

"The installer found the ImageMagick convert program in C:\ImageMagick, however it can't be executed by the script."

This happens to both the DLL package and the complete package.

1. How do I fix this?
2. What script is Coppermine talking about for ImageMagick?

I'm assuming that the gallery can only use one image utility at a time: GD for PNG and JPG files, ImageMagick for all image types. I was thinking that you could try implementing the imagecreatefromgif() or getfilesize() commands on your scripts, but you'd have to create your own thumbnails from a program like Adobe Photodeluxe (which was what I used before). Is there any way around this (like a hack)?
« Last Edit: October 25, 2005, 12:51:47 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: ImageMagick - Cannot execute the script
« Reply #1 on: October 17, 2005, 09:24:10 pm »

Windows 98 as server OS? Come on - use GD. The extra image file formats supported by ImageMagick don't belong on a webserver anyway. From the docs:
Quote
If you are using ImageMagick convert utility to resize you picture, you must enter the name of the directory where the convert program is located there. Don't forget the trailing "/".

If your server is running under Windows, use / and not \ to separate components of the path (eg. use C:/ImageMagick/ and not C:\ImageMagick\). This path must not contain any space so under Windows don't put ImageMagick in the "Program files" directory.

ImageMagick will hardly work if PHP on your server is running in SAFE mode and it is a real challenge to get it running under Windows. Consider using GD in these cases and don't waste your time asking for support in the forum. There are too many things that can prevent ImageMagick to work correctly and without a physical access to your server it is hard to guess what is wrong.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: ImageMagick - Cannot execute the script
« Reply #2 on: October 17, 2005, 11:18:50 pm »

Don't waste your time attempting to use Windows 98 to host a webserver.  If you absolutely feel the need, certainly don't use it for anything more than a test box.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: ImageMagick - Cannot execute the script
« Reply #3 on: October 17, 2005, 11:24:03 pm »

From the ImageMagick website:
Quote
Windows Binary Release
ImageMagick should run on Windows 98/ME/NT4/2000/XP. It is recommended to use an NT-based version of Windows (NT4, 2000 or XP). Starting with ImageMagick 5.5.7, older versions such as Windows 95 are not supported anymore. The amount of memory can be an important factor, especially if you intend to work on large images. A minimum of 128 MB of RAM is recommended, but the more RAM the better.
Logged

no1wammy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: ImageMagick - Cannot execute the script
« Reply #4 on: October 18, 2005, 01:01:36 am »

> Don't waste your time attempting to use Windows 98 to host a webserver.  If you absolutely feel the need, certainly don't use it for anything more than a test box.

I am using Windows 98 as a test box. It gives me a chance to feel what it's like to actually run a website for a change. It's been one of my dreams.

> Come on - use GD.

Then how am I supposed to deal with GIF files? That's one of my big three, you know.
Logged

Nibbler

  • Guest
Logged

no1wammy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: ImageMagick - Cannot execute the script
« Reply #6 on: October 18, 2005, 07:10:33 pm »

> http://forum.coppermine-gallery.net/index.php?topic=9407.0

This is what I get for not using Google efficiently. Next time, I won't register rashly without considering all my options first.

After I added a mod, I uploaded a GIF file. The message said that the upload was successful, but when I clicked Continue, there was no thumbnail. What gives?

You know, the only way I'm gonna be able to get actual help is if I show you a website that actually uses GIF. Problem is: can't do it.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: ImageMagick - Cannot execute the script
« Reply #7 on: October 19, 2005, 06:20:09 am »

did you read the upload troubleshooting stickies?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: ImageMagick - Cannot execute the script
« Reply #8 on: October 19, 2005, 12:51:25 pm »

You also verified you have a PHP version that has GD 2.0.28 or newer?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

no1wammy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: ImageMagick - Cannot execute the script
« Reply #9 on: October 19, 2005, 07:41:40 pm »

> You also verified you have a PHP version that has GD 2.0.28 or newer?

According to the PHP info, it says I have GD 2.0.28 compatible. Bundled was also in there. GIF read and write support was also enabled.

> did you read the upload troubleshooting stickies?

Where I had to turn on Debug mode for all and set Permissions to Single File Upload?

This is what I did:
1. I clean-installed Coppermine without executing install.php
2. Added GIF support to the scripts
3. Executed install.php
4. Changed settings so that Debug Mode can be viewed by everyone and Groups Console to Single File Upload - AND checked to see if permission is set to code 777 or 755 (that's mine). The other is 644.

> http://forum.coppermine-gallery.net/index.php?topic=7163.0

You know, I did not read that sticky.

I will, however, provide the Debug code if you ask me for it.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: ImageMagick - Cannot execute the script
« Reply #10 on: October 20, 2005, 08:31:38 am »

You know, I did not read that sticky.
Do so now please. Then do as suggested and post the information that we need. Do not post the debug_output. We need actual error messages and a non-admin test user acount (as suggested in the stickies).
Logged

no1wammy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: ImageMagick - Cannot execute the script
« Reply #11 on: October 20, 2005, 10:08:51 pm »

I'm going to start this topic over. Can you delete this thread?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: ImageMagick - Cannot execute the script
« Reply #12 on: October 21, 2005, 01:13:57 am »

We don't delete threads.  Just keep adding to this thread.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

no1wammy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: ImageMagick - Cannot execute the script
« Reply #13 on: October 21, 2005, 08:41:27 pm »

> non-admin test user acount (as suggested in the stickies)

I do not know what that actually means. But, just to be on the safe side, I created a test account with Registered privleges.

I hope this works...

php.ini Settings
---------------------
max_input_time = 60 (OK)
upload_max_filesize = 2MB (OK)
post_max_size = 8MB (OK)
memory_limit = 8MB (OK)
file_uploads = On (OK)
upload_tmp_dir = System Default (Disabled)
allow_url_fopen = On (OK)

LimitRequestBody = CONF.D FILE NOT FOUND (Windows 98)

Admin Mode Results:
Error: When using the GD image library allowed image types are only JPEG and PNG.
File: C:\YH\gallery\db_input.php - Line: 293

User Mode Results:
Critical Error: The file 'albums/userpics/10002/php.gif' can't be inserted in the album.
Unable to create thumbnail or reduced size image.
File: C:\YH\gallery\db_input.php - Line: 312
Warning: chmod() [function.chmod]: No such file or directory in C:\YH\gallery\include\picmgmt.inc.php on line 234
Warning: getimagesize(albums/userpics/10002/thumb_php.gif) [function.getimagesize]: failed to open stream: No such file or directory in C:\YH\gallery\include\picmgmt.inc.php on line 236

Side Note (Only if you're interested):
- YH stands for Yuri Heaven.
- These tests were done from a computer that is not connected to the internet. In this case, my test box.

As much as I hate ignoring other people's request, I have to post this. If it's not needed, I'll delete it later today.

Debug Output (Admin Only):
USER:
------------------
Array
(
    [ID] => d1def9c1a6b270f4305c4c078f8685cd
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => no1wammy
    [user_password] => ********
    [user_lastvisit] => 2005-10-19 22:51:03
    [user_regdate] => 2005-10-18 23:20:32
    [user_group_list] =>
    [user_email] =>
    [user_website] => **********
    [user_location] => **********
    [user_interests] => **********
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 0
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 0
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg135_filetypes;

    [1] => SELECT * FROM cpg135_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '5025b207b98c331d013ec475f44c3e51'
    [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg135_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg135_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg135_banned WHERE expiry < '2005-10-20 21:28:10'
    [5] => SELECT * FROM cpg135_banned WHERE ip_addr='127.0.0.1' OR ip_addr='127.0.0.1' OR user_id=1
    [6] => SELECT category FROM cpg135_albums WHERE aid='2'
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [album] => 2
    [MAX_FILE_SIZE] => 1048576
    [title] => test
    [caption] => test
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 5.0.5 - OK
------------------
mySQL version: 4.1.14
------------------
Coppermine version: 1.3.5
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.1.7
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .;C:\php5\pear | .;C:\php5\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | no value | no value
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.413 seconds - 7 queries in 0.028 seconds - Album set :
Logged

no1wammy

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: ImageMagick - Cannot execute the script
« Reply #14 on: October 24, 2005, 06:53:21 pm »

Uh... I give up. You can close this if you want.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: ImageMagick - Cannot execute the script
« Reply #15 on: October 25, 2005, 12:51:31 am »

as I suggested: Windows98 definitely is no server operating system - see th error message
Quote
LimitRequestBody = CONF.D FILE NOT FOUND (Windows 98)

Uh... I give up. You can close this if you want.
I hope that you understand that all the issues you were experiencing are related to the general idea to use Windows98 as OS: it's just incredibly hard to accomplish this. I'll do as you suggested and mark this thread as "closed".
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 20 queries.