coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Ideal Singh on March 30, 2004, 02:57:29 PM

Title: Another Lycos Puzzle
Post by: Ideal Singh on March 30, 2004, 02:57:29 PM
Hi,

I had installed coppermine 1.2.1 on lycos.co.uk . Everything seemed to be working till i started to upload a picture. The following error pops up... :? everytime...

QuoteThe picture 'albums/userpics/10001/23.jpg' can't be inserted in the album

Warning: chmod, chgrp, realpath, tmpfile, link, mb_send_mail() has been disabled for security reasons

How to correct these errors ? Lycoz seems to be too busy to help me out on this. Please Guide.
Title: Another Lycos Puzzle
Post by: hyperion on March 30, 2004, 06:52:27 PM
The issue arises when Coppermine tries to chmod the newly uploaded picture in db_input.php.  You can try commenting out the chmod line, but the file permissions may not be correct whn users try to view the picture later.  You'll have to see what file permissions the system creates without it.


        // Change file permission
        chmod($uploaded_pic, octdec($CONFIG['default_file_mode']));


to


        // Change file permission
        //chmod($uploaded_pic, octdec($CONFIG['default_file_mode']));