Upload photo error Upload photo error
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Upload photo error

Started by wboerendans, August 20, 2004, 12:17:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wboerendans

Hi,

I have a problem with Coppermine 1.2.1. When I upload a photo, I see errors. Can someone tell me what I miss? Or haven't I not much rights? I see many topics with this problem, but I see not the same errors seems me.

Thank you in advance,

This are the errors:

Warning: exec, system, inode, socket, passthru, shell_exec, proc_close, proc_terminate, proc_open() has been disabled for security reasons in /mnt/storage1/b/bl/blauwwit-oldebroek.nl/html/cpg/include/picmgmt.inc.php on line 131

Warning: chmod(): Unable to access albums/userpics/thumb_Moose2.jpg in /mnt/storage1/b/bl/blauwwit-oldebroek.nl/html/cpg/include/picmgmt.inc.php on line 191

Warning: chmod(): No such file or directory in /mnt/storage1/b/bl/blauwwit-oldebroek.nl/html/cpg/include/picmgmt.inc.php on line 191

Warning: getimagesize(): Unable to access albums/userpics/thumb_Moose2.jpg in /mnt/storage1/b/bl/blauwwit-oldebroek.nl/html/cpg/include/picmgmt.inc.php on line 193

Warning: getimagesize(albums/userpics/thumb_Moose2.jpg): failed to open stream: No such file or directory in /mnt/storage1/b/bl/blauwwit-oldebroek.nl/html/cpg/include/picmgmt.inc.php on line 193

Joachim Müller

it means what it says: your webhost has disabled certain commands on your webserver for security reasons. Coppermine is using one (or more) of them. If coppermine still works for you, comment the lines with the offending code just out (you can do so with the chmod command), or silence the command by putting an @ sign in front of it. You probably won't be able to do so for exec(), as it is used with ImageMagick, which is vital. I suggest switching to GD instead. If you can't do that, ask your webhost for support.

The lines in question (picmgmt.in.php):exec ($cmd, $output, $retval);
chmod($dest_file, octdec($CONFIG['default_file_mode']));=>@chmod($dest_file, octdec($CONFIG['default_file_mode']));

You're encouraged to upgrade to cpg1.3.2 (although it won't fix this particular problem).

GauGau