coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Graham on June 27, 2004, 08:49:03 PM

Title: Warning: opendir(): SAFE MODE Restriction in effect ??? Help!
Post by: Graham on June 27, 2004, 08:49:03 PM
Hey guys i cant upload in my gallery anymore its saying this..

Warning: opendir(): SAFE MODE Restriction in effect. The script whose uid is 767 is not allowed to access /home/sc266/www/gallery/albums owned by uid 0 in /home/sc266/www/gallery/upload.php on line 406

Warning: opendir(./albums/edit): failed to open dir: No such file or directory in /home/sc266/www/gallery/upload.php on line 406

Any ideas on how to solve this?
Title: Re: Warning: opendir(): SAFE MODE Restriction in effect ??? Help!
Post by: Graham on June 27, 2004, 08:57:25 PM
Just to clarify it says that above the main page when you go to the upload screen, the message that it gives when you try to upload is..

Error Report
The following uploads encountered errors: 
File Uploads: 
File Name/URL Error Message
1. nine4.JPG Impossible to move.
Title: Re: Warning: opendir(): SAFE MODE Restriction in effect ??? Help!
Post by: Graham on June 27, 2004, 09:03:06 PM
And the error that appears at the top of the page after attempting to upload is..

Warning: move_uploaded_file(./albums/edit/mHTTP_temp_aa65969e.JPG): failed to open stream: No such file or directory in /home/sc266/www/gallery/upload.php on line 1193

Warning: move_uploaded_file(): Unable to move '/tmp/phpRneZZj' to './albums/edit/mHTTP_temp_aa65969e.JPG' in /home/sc266/www/gallery/upload.php on line 1193

Cheers if you can help guys :)
Title: Re: Warning: opendir(): SAFE MODE Restriction in effect ??? Help!
Post by: Graham on June 27, 2004, 09:25:40 PM
OK guys ive mannaged to mend it myself, for some random reason the albums/edit folder had deleted itself? if anybody knows how to stop this in the future please tell me.