Can't upload photos Can't upload photos
 

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

Can't upload photos

Started by Ka5, December 06, 2011, 04:45:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ka5

I don't know what I am doing wrong. when i use the batch add files the photos don't show up and so they won't upload.

Then I try to upload through the link up top the upload files and I get this message: Failed to create directory albums/userpics/1002

I had this problem earlier and my friend said to try and update the gallery and I did and I have the some problem. I don't think it's the photos because I have gotten these photos form the some person the same way I have gotten some of my other photos. If someone can help me that would be great.

LexiAinsworth.org/gallery

Tester:
Removed admin login data

I am trying to upload photos in

gallery/albums/GH Caps/2011/11-31-11

to the album

Home > Television Series > General Hospital > Screencaps > 2011 > October >October 31, 2011

thank you!!

Αndré


Ka5

okay thanks so then my next question is what do i say to my server?

I need to change the permission in my gallery on my site?

will they know what I am talking about?

Please and Thank you!!

Ka5

so I did the debug thing and I got this info...

Quote
USER:
------------------
Array
(
    [ID] => 006f097f6980e7f19652cbe3e1e436d5
    [lang] => english
    [liv] => Array
        (
           
  • => 31532
                [1] => 31531
                [2] => 31534
                [3] => 31535
                [4] => 109
            )

        [liv_a] => Array
            (
               
  • => 9
                [1] => 19
                [2] => 12
                [3] => 393
            )

        [am] => 1
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => Karlie
        [groups] => Array
            (
               
  • => 1
            )

        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 1
        [has_admin_access] => 1
        [access_level] => 3
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Administrators
        [can_create_public_albums] => 0
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
        [allowed_albums] => Array
            (
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT name, value FROM cpg_config [include/init.inc.php:181] (0 ms)
        [1] => SELECT * FROM cpg_plugins ORDER BY priority [include/plugin_api.inc.php:54] (0 ms)
        [2] => SELECT user_id, time FROM `ghmedia1_copp1`.cpg_sessions WHERE session_id = 'b4e22c8c053b827a2fd597874b8c03c1' [bridge/coppermine.inc.php:264] (0 ms)
        [3] => SELECT user_id, user_password FROM `ghmedia1_copp1`.cpg_users WHERE user_id = 1 [bridge/coppermine.inc.php:276] (0 ms)
        [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `ghmedia1_copp1`.cpg_users AS u LEFT JOIN `ghmedia1_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:70] (0 ms)
        [5] => SELECT user_group_list FROM `ghmedia1_copp1`.cpg_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:202] (0 ms)
        [6] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0 ms)
        [7] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0 ms)
        [8] => SELECT COUNT(*) FROM cpg_categorymap WHERE group_id in (1) [bridge/udb_base.inc.php:340] (0 ms)
        [9] => UPDATE `ghmedia1_copp1`.cpg_sessions SET time = 1323197632 WHERE session_id = 'b4e22c8c053b827a2fd597874b8c03c1' [bridge/coppermine.inc.php:321] (0 ms)
        [10] => UPDATE `ghmedia1_copp1`.cpg_users SET user_lastvisit = NOW() WHERE user_id = '1' [bridge/coppermine.inc.php:325] (0 ms)
        [11] => SELECT lang_id FROM cpg_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
        [12] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 [include/init.inc.php:387] (0 ms)
        [13] => DELETE FROM cpg_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE [plugins/onlinestats/codebase.php:123] (0 ms)
        [14] => REPLACE INTO cpg_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'Karlie', '71.199.22.165', NOW()) [plugins/onlinestats/codebase.php:128] (0 ms)
        [15] => DELETE FROM cpg_banned WHERE expiry < '2011-12-06 12:53:52' [include/init.inc.php:443] (0 ms)
        [16] => SELECT null FROM cpg_banned WHERE (user_id=1 OR '71.199.22.165' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
        [17] => SELECT aid, title FROM cpg_albums WHERE 1 [searchnew.php:360] (0 ms)
        [18] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' [include/functions.inc.php:2438] (0 ms)
        [19] => SELECT lang_id, abbr FROM cpg_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2316] (0 ms)
        [20] => DELETE FROM cpg_temp_messages WHERE time < 1323194032 [include/functions.inc.php:4947] (0 ms)
        [21] => SELECT filepath, filename FROM cpg_pictures WHERE filepath LIKE 'GH Caps/2011/10-31-11%' [searchnew.php:338] (12 ms)
        [22] => SELECT aid, title, category FROM cpg_albums ORDER BY pos [include/functions.inc.php:5947] (0 ms)
        [23] => SELECT cid, rgt, name FROM cpg_categories ORDER BY lft [include/functions.inc.php:5964] (0 ms)
        [24] => SELECT user_id AS user_id, user_name AS user_name FROM `ghmedia1_copp1`.cpg_users ORDER BY user_name [include/functions.inc.php:5986] (0 ms)
        [25] => SELECT extension, mime, content, player FROM cpg_filetypes [include/functions.inc.php:5809] (2 ms)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [startdir] => GH Caps/2011/10-31-11
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    COOKIE :
    ------------------
    Array
    (
        [wp-settings-1] => editor=html&hidetb=0&m6=c&m1=o
        [wp-settings-time-1] => 1318136712
        [WibiyaNotification1] => 1
        [c1276fda0aefdae2616b1863d644e261] => 7b6517a0bf2cd0e9566c295a34715e7a
        [jwib01032032_unique_user] => 1
        [wordpress_test_cookie] => WP Cookie check
        [wordpress_logged_in_3af8fe0fde050135a0f4f32bc7faf8ef] => KristinaFan|1324400934|5258765bdd54646ec6fd1d4dd41ef5dc
        [WibiyaProfile] => {\"toolbar\":{\"stat\":\"Min\"},\"apps\":{\"openApps\":{}},\"connectUserNetworks\":[\"0\",\"0\",\"0\",\"0\",null,null]}
        [WibiyaLoads] => 251
        [9ecb01d718cc39d5142fbd487ab9b2e8] => fb59a9c827cfde7a09ac6981ead53dc2
        [cpg15x_data] => YTo1OntzOjI6IklEIjtzOjMyOiIwMDZmMDk3ZjY5ODBlN2YxOTY1MmNiZTNlMWU0MzZkNSI7czo0OiJsYW5nIjtzOjc6ImVuZ2xpc2giO3M6MzoibGl2IjthOjU6e2k6MDtzOjU6IjMxNTMyIjtpOjE7czo1OiIzMTUzMSI7aToyO3M6NToiMzE1MzQiO2k6MztzOjU6IjMxNTM1IjtpOjQ7czozOiIxMDkiO31zOjU6Imxpdl9hIjthOjQ6e2k6MDtpOjk7aToxO2k6MTk7aToyO2k6MTI7aTozO2k6MzkzO31zOjI6ImFtIjtpOjE7fQ==
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version        5.2.15           OK   
    MySQL version      5.0.92-community OK   
    Coppermine version 1.5.16           stable

    ==========================
    Module: GD
    ------------------
    Exact version                    2.0.34                     
    GD Version                       bundled (2.0.34 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                         
    XPM Support                      1                         
    XBM Support                      1                         
    JIS-mapped Japanese Font Support                           

    ==========================
    Key config settings
    ------------------
    site_url             http://lexiainsworth.org/gallery/                                         
    charset              utf-8                                                                     
    allow_private_albums 1                                                                         
    cookie_name          cpg15x                                                                     
    cookie_path          /                                                                         
    impath               /usr/bin/                                                                 
    lang                 english                                                                   
    main_page_layout     lastalb,1/breadcrumb/catlist/alblist/topn,1/lasthits,1/random,1/onlinestats
    silly_safe_mode      0                                                                         
    smtp_host                                                                                       
    theme                lexi-photo                                                                 
    thumb_method         im                                                                         

    ==========================
    Plugins
    ------------------
    Name           Who is online?                                                               
    Actions        plugin_install, page_start, plugin_uninstall, plugin_cleanup, plugin_configure
    Filters        plugin_block                                                                 
    --------------

    ==========================
    Server restrictions
    ------------------
    safe_mode                1                                           
    safe_mode_exec_dir                                                   
    safe_mode_gid            1                                           
    safe_mode_include_dir                                                 
    sql.safe_mode                                                         
    disable_functions        posix_getpwuid,posix_getpwnam,exec,shell_exec
    file_uploads             1                                           
    include_path             .:/usr/lib/php:/usr/local/lib/php           
    open_basedir                                                         
    allow_url_fopen                                                       
    max_execution_time       30                                           
    max_input_time           60                                           
    upload_max_filesize      10M                                         
    post_max_size            8M                                           
    memory_limit             128M                                         
    suhosin.post.max_vars                                                 
    suhosin.request.max_vars                                             


    ==========================
    Page (performance)
    ------------------
    Parameter        Current  Peak   
    Memory usage     4.60 MiB 6.40 MiB
    Page generation  277 ms   277 ms 
    Page query time  14 ms    14 ms   
    Page query count 26       26     


    ==========================
                   
don't know what it means but if there is something that I can fix let me know. thank you for your help!

Αndré

Just set the permissions as described in the docs. You can do that yourself, you don't have to talk to anybody. That's exactly what's also written in the docs.

Ka5

Okay but where? all I it say is

"Check your folder and file permission settings on the /albums, /albums/userpics, and /albums/edit directories. On *nix-driven webservers, the folder /albums and all sub-folders should usually be 777 or 755 (depending on your webserver configuration). If you don't know what we mean by 777 or 755, you need to read up the permission section (if this doesn't help, do a Google search on UNIX file permissions). Windows has a similar set of file permissions. You can usually set these permissions using an FTP client (If you don't know what an FTP client is, Google for FTP client or take a look at the list of recommended tools)."

So where do I go to check and change through my FTP program? What document will I have to get into to change it?

Αndré

Sorry, but I don't get what exactly you need to know now. Start your FTP client and set the permissions as described.

But you have a much bigger problem. As you posted admin login data you should change your passwords urgently. I just removed them from your initial post.

Ka5

Thank you for trying to help, but you really haven't helped me at all. Thank you for your time tho. Oh and deleted the user thank you