coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: gizzmo on June 24, 2004, 06:40:57 PM

Title: [Solved]: error in upload.php on line 1205
Post by: gizzmo on June 24, 2004, 06:40:57 PM
When i use the file upload funtion i get an error display, everything works fine further the upload works etc. i only want to get rid of this error:

Warning: chmod, chgrp, realpath, tmpfile, link, mb_send_mail() has been disabled for security reasons in /data/members/free/tripod/nl/d/c/g/dcgallery/htdocs/upload.php on line 1205

Is there some way to fix this?
Title: Re: error in upload.php on line 1205
Post by: Joachim Müller on June 25, 2004, 12:56:23 AM
your webhost has disabled CHMOD to be executed in php (obviously for security reasons, but somehow castrating your webspace with this directive). To solve this issue for you, edit upload.php, find            // Change file permission
            chmod($path_to_image, octdec($CONFIG['default_file_mode']));
and comment it out by replacing it with            // Change file permission
            //chmod($path_to_image, octdec($CONFIG['default_file_mode']));


GauGau
Title: Re: error in upload.php on line 1205
Post by: gizzmo on June 25, 2004, 01:21:54 PM
Ok thanks it worked