Critical error when trying to upload pics Critical error when trying to upload pics
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Critical error when trying to upload pics

Started by san, December 12, 2007, 02:45:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

san

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
        (
           
  • => 1
            )

        [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
    (
       
  • => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0s)
        [1] => select * from cpg1410_plugins order by priority asc; (0s)
        [2] => delete from `sanlit`.cpg1410_sessions where time<1197419959 and remember=0; (0s)
        [3] => delete from `sanlit`.cpg1410_sessions where time<1196213959; (0s)
        [4] => select user_id from `sanlit`.cpg1410_sessions where session_id=md5("f9818e68729ea5b6ac97e263c7394cf845d45e431012d0fd7922d476d852bf6f"); (0s)
        [5] => select user_id as id, user_password as password from `sanlit`.cpg1410_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `sanlit`.cpg1410_users AS u INNER JOIN `sanlit`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `sanlit`.cpg1410_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg1410_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0s)
        [10] => update `sanlit`.cpg1410_sessions set time='1197423559' where session_id=md5('f9818e68729ea5b6ac97e263c7394cf845d45e431012d0fd7922d476d852bf6f'); (0s)
        [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-12-12 01:39:19' (0s)
        [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='68.144.6.244' OR ip_addr='68.144.6.244' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT category FROM cpg1410_albums WHERE aid='1' (0s)
        [15] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    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: ;

Joachim Müller

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