PDA

View Full Version : Can't upload images anymore - error message


Cyclist
18th of September 2004 (Sat), 03:54
When I try to upload photos to EE I get an error message:

msg 77121 | ftp: 04tdp_003.jpg: UPLOAD ERROR. Reason: exec,system,passthru,shell_exec,popen,escapeshellc md,proc_open,proc_nice() has been disabled for security reasons
msg 77120 | imagemagick: IMAGEMAGICK COMMAND (resize+sharpen) | convert -size 33x50 UPLOAD/04tdp_003.jpg -resize 33x50! +profile '*' -unsharp 0.6x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/04tdp_003.jpg | EXECUTED OK
msg 77119 | ftp: 04tdp_002.jpg: UPLOAD ERROR. Reason: exec,system,passthru,shell_exec,popen,escapeshellc md,proc_open,proc_nice() has been disabled for security reasons
msg 77118 | imagemagick: IMAGEMAGICK COMMAND (resize+sharpen) | convert -size 33x50 UPLOAD/04tdp_002.jpg -resize 33x50! +profile '*' -unsharp 0.6x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/04tdp_002.jpg | EXECUTED OK
msg 77117 | ftp: 04tdp_001.jpg: UPLOAD ERROR. Reason: exec,system,passthru,shell_exec,popen,escapeshellc md,proc_open,proc_nice() has been disabled for security reasons
msg 77116 | imagemagick: IMAGEMAGICK COMMAND (resize+sharpen) | convert -size 33x50 UPLOAD/04tdp_001.jpg -resize 33x50! +profile '*' -unsharp 0.6x0.7+2+0.1 -quality 67 UPLOAD/ee_temp_upload/04tdp_001.jpg | EXECUTED OK

In the past I never got that message. I have never had any problems with uploading pics. What's wrong now?

Pekka
18th of September 2004 (Sat), 06:39
You server admin has changed PHP settings and disabled all commands which let PHP run server-side programs (like Imagemagick).

"exec,system,passthru,shell_exec,popen,escapeshellc md,proc_open,proc_nice() has been disabled for security reasons"

You should give them a mail and ask for a server where you can run IM. They could also install IM executables into a folder which would then be set as "safe_mode_exec_dir" in PHP meaning you can run server-side programs only from that folder.

If they refuse to do that then you choices are to change to server which lets you run Imagemagick, or use GD.

EE 1.5 RC4 needs "exec" command for IM (passthru is selectable in release version).