coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: san on December 12, 2007, 02:45:13 AM

Title: Critical error when trying to upload pics
Post by: san on December 12, 2007, 02:45:13 AM
First, I am code illiterate.  If anyone can help, please explain as you would to a 3 yr old!  I've gone through the upload troubleshooting and tried to follow the instructions.  However, I cannot figure out why the following message appears when trying to upload pics:

Critical error
Destination directory albums/userpics/10001/ is not writable by the script !

File: /usr/local/4admin/apache/vhosts/leighannelittrellonline.net/httpdocs/cpg/db_input.php - Line: 331



USER:
------------------
Array
(
    [ID] => 5057d4f30aec68cfcda8b640c08e85eb
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => san
    [groups] => Array
        (
           
Title: Re: Critical error when trying to upload pics
Post by: Joachim Müller on December 12, 2007, 07:54:38 AM
Quote from: san on December 12, 2007, 02:45:13 AM
First, I am code illiterate.
You don't need to be able to read the code to use coppermine.
Quote from: san on December 12, 2007, 02:45:13 AMIf anyone can help, please explain as you would to a 3 yr old!
Three year olds can't read, they are not our target audience ;)
Quote from: san on December 12, 2007, 02:45:13 AMI've gone through the upload troubleshooting and tried to follow the instructions.
Read it more thoroughly, there is an entire section that explains what to do when asking for support on uploading issues (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_support). It says as well that you mustn't post debug_output unless a supporter explicitely asks for it.

Quote from: san on December 12, 2007, 02:45:13 AMHowever, I cannot figure out why the following message appears when trying to upload pics:

Critical error
Destination directory albums/userpics/10001/ is not writable by the script !

File: /usr/local/4admin/apache/vhosts/leighannelittrellonline.net/httpdocs/cpg/db_input.php - Line: 331
Well, then you should make the destination directory writable for the script, don't you agree? Set permissions on the albums folder and everything within it as suggested in the permissions section of the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions).
There is a sticky thread on this board as well - let me quote from it:
Quote from: GauGau on November 25, 2005, 10:37:03 AMFIRST AND FOREMOST: CHECK YOUR PERMISSIONS ON THE /ALBUMS, /ALBUMS/USERPICS, AND /ALBUMS/EDIT DIRECTORIES.  ALL SHOULD BE 777 OR 755.

If you don't know what we mean when we write 777 or 755,  you need to do a Google search on UNIX file permissions.  Windows has a similar set of file permissions. You can usually set these permissions using your FTP client.     

For those of you who skim over statements written in large letters, I will repeat to try to get your attention:

YES, WE ARE WRITING ABOUT SOMETHING THAT COULD APPLY TO YOU.   

WE REPEAT -- CHECK YOUR PERMISSIONS ON THE /ALBUMS, /ALBUMS/USERPICS, AND /ALBUMS/EDIT DIRECTORIES.  ALL SHOULD BE 777 OR 755.

YES, WE WANT YOU TO CHECK THE PERMISSIONS OF EACH FOLDER EVEN IF YOU THINK YOU HAVE ALREADY DONE THIS. YES, WE MEAN IT.