forum.coppermine-gallery.net

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
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [album] => 1
    [MAX_FILE_SIZE] => 2048000
    [title] => 001
    [caption] =>
    [keywords] =>
    [event] => picture
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.6 - OK
------------------
mySQL version: 5.0.30-Debian_3
------------------
Coppermine version: 1.4.14(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 1
Active Links 2
Client API version 5.0.30
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/4admin/phpstuff | /usr/local/php/bin
safe_mode_gid | On | Off
safe_mode_include_dir | /tmp:/usr/local/4admin/apache/vhosts/leighannelittrellonline.net/httpdocs:/usr/local/4admin/apache/vhosts/leighannelittrellonline.net/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff/bin | no value
safe_mode_exec_dir | /usr/local/4admin/phpstuff | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/4admin/apache/lib/php | .:/usr/local/4admin/apache/lib/php
open_basedir | /tmp:/usr/local/4admin/apache/vhosts/leighannelittrellonline.net/httpdocs:/usr/local/4admin/apache/vhosts/leighannelittrellonline.net/logs:/usr/local/4admin/apache/vhosts/leighannelittrellonline.net/storage:/usr/local/4admin/apache/vhosts/leighannelittrellonline.net/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i sanlit | /usr/lib/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 900 | 30
max_input_time | -1 | -1
upload_max_filesize | 10M | 2M
post_max_size | 10M | 8M
==========================
Page generated in 0.072 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;
Title: Re: Critical error when trying to upload pics
Post by: Joachim Müller on December 12, 2007, 07:54:38 am
First, I am code illiterate.
You don't need to be able to read the code to use coppermine.
If 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 ;)
I'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.

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
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:
FIRST 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.