Something wrong in upload Something wrong in upload
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Something wrong in upload

Started by bellimar, November 28, 2005, 09:23:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bellimar

Hello, I have an problem with upload. I set all folders what You write in faq on chmod 777 (and i try on 755) and i try change in config the same what Ii find here http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php and i still can't upload pics. Debug info i put near, maybe it helps.


QuoteNo file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /db_input.php - Line: 222


and debug info.

USER:
------------------
Array
(
    [ID] => 77877ef0b1de0253c47cbccb32090b08
    [am] => 1
    [liv] => Array
        (
           
  • => 1
            )

        [search] => ###versi
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 2
        [user_group] => 2
        [user_active] => YES
        [user_name] => test
        [user_password] => ********
        [user_lastvisit] => 2005-11-28 21:17:34
        [user_regdate] => 2005-11-23 22:43:45
        [user_group_list] => 6
        [user_email] =>
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [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] => 5
        [num_URI_upload] => 3
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 1
        [has_admin_access] => 0
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Registered
        [upload_form_config] => 0
        [group_quota] => 0
        [can_see_all_albums] => 0
        [group_id] => 2
        [groups] => Array
            (
               
  • => 6
                [1] => 2
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg135_filetypes;
        [1] => SELECT * FROM cpg135_users WHERE user_id='2'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '098f6bcd4621d373cade4e832627b4f6'
        [2] => 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 cpg135_usergroups WHERE group_id in (6,2)
        [3] => SELECT group_name FROM  cpg135_usergroups WHERE group_id= 2
        [4] => DELETE FROM cpg135_banned WHERE expiry < '2005-11-28 21:17:52'
        [5] => SELECT * FROM cpg135_banned WHERE ip_addr='83.30.134.38' OR ip_addr='83.30.134.38' OR user_id=2
        [6] => SELECT aid FROM cpg135_albums WHERE visibility != '0' AND visibility !='10002' AND visibility NOT IN (6,2)
        [7] => SELECT category FROM cpg135_albums WHERE aid='87' and (uploads = 'YES' OR category = '10002')
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 87
        [MAX_FILE_SIZE] => 1048576
        [title] =>
        [caption] =>
        [keywords] =>
        [event] => picture
    )

    ==========================
    Page generated in 0.387 seconds - 8 queries in 0.117 seconds - Album set :

Nibbler

So does the server allow file uploads ?

Please follow the instructions provided at http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php

bellimar

Serwer allows upload. On start i upload few pics, than something chabged  ??? and i can't. I have already on options from this link, and nothing changed - the same problem. (earler i have photo album, and no problem with upload i have).

Joachim Müller

re-read the tutorial and do exactly as suggested. Read the whole page. Read all of it.

bellimar

The same problem -really. i can make screenshoot to prove that everything in options the same like in tutorial. Did you have any idea for this ? or you want check it personally?

Nibbler

Read the page !

"When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges."

bellimar

www.galeria.arachnea.pl


Info about test account

login: test
password: test

Joachim Müller

looks like an ownership issue to me. Ask your webhost to CHOWN the albums folder for you.

bellimar

#8
OK, I contact the host admin and he make, that i can upload photos. But only when I'm admin. When I change on user mode It writes to me
"Sorry there is no album where you are allowed to upload files"

File: /upload.php - Line: 845

What can be wrong? or what I must change? debug info near.

[removed pointless debug info spam]

Nibbler

Allow uploads to at least one album using album properties and check you have allowed uploads on the groups page.

bellimar