coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: CrazyKZ on November 10, 2005, 09:09:32 PM

Title: Upload issue
Post by: CrazyKZ on November 10, 2005, 09:09:32 PM
I was able to get 2 files to upload (somehow...as the admin), now when I try an upload it gives me the following error.
I have tripple checked that the appropriate directories are set to 777.


Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/albums/userpics/10002 owned by uid 48 in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/upload.php on line 2195

Warning: fopen(albums/userpics/10002/index.html): failed to open stream: No such file or directory in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/upload.php on line 2195

Warning: fwrite(): supplied argument is not a valid stream resource in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/upload.php on line 2196

Warning: fclose(): supplied argument is not a valid stream resource in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/upload.php on line 2197

Warning: chmod(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access albums/userpics/10002/image1.jpg owned by uid 48 in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/upload.php on line 2232

Warning: getimagesize(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access albums/userpics/10002/image1.jpg owned by uid 48 in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/include/picmgmt.inc.php on line 118

Warning: getimagesize(albums/userpics/10002/image1.jpg): failed to open stream: No such file or directory in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/include/picmgmt.inc.php on line 118


>>>>>I then went into make the changes as often suggested in this forum and logged in as a test user and tried to upload a file and the below error is what I got:


Impossible to move image4.jpg to albums/userpics/10002/ !

File: /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/db_input.php - Line: 267



Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/albums/userpics/10002 owned by uid 48 in /home/httpd/vhosts/grace-efc.org/httpdocs/galleries/db_input.php on line 266

>>>>>>>
P.S.  I also noticed that in admin mode, I can see different Albums to upload into, but if I switch to user mode, I only can see one album. What's up with that??
Title: Re: Upload issue
Post by: Nibbler on November 10, 2005, 11:21:02 PM
Use silly_safe_mode

http://coppermine-gallery.net/demo/cpg13x/docs/index.htm#safe
Title: Re: Upload issue
Post by: CrazyKZ on November 10, 2005, 11:52:18 PM
There we go.  Thanks.  I wasn't for sure which file to put the    define('SILLY_SAFE_MODE', 1);    into.

The second question I had in the above was related to still not being able to upload to only 1 album in user mode.  I can move them to it, and add in admin mode, but not in user mode of the admin login.

--KZ
Title: Re: Upload issue
Post by: Nibbler on November 10, 2005, 11:59:43 PM
Check permissions on the groups page and album properties. If you can't figure it out after checking the manual then please start a new thread for the new question.