forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: basicxman on June 07, 2008, 02:27:48 am

Title: how to set permissions for users
Post by: basicxman on June 07, 2008, 02:27:48 am
How do I set what albums normal (non-admin) users can upload to?
Title: Re: how to set permissions for users
Post by: Fabricio Ferrero on June 07, 2008, 02:53:53 am
Go to: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#album_prop (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#album_prop)
And: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#group_cp (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#group_cp)

Those links will solve your problem. Reads de docs, it's very useful.  ;)
Title: Re: how to set permissions for users
Post by: basicxman on June 07, 2008, 05:46:13 pm
i read those but i finally found my problem, i thought visitors meant the 'guests' group or other non-registered people
Title: Re: how to set permissions for users
Post by: basicxman on June 07, 2008, 06:37:01 pm
no never mind this is not solved, my users can still not go on my gallery

user: demo_user
pass: awesome
Title: Re: [Solved]: how to set permissions for users
Post by: basicxman on June 07, 2008, 06:39:56 pm
all the albums are set to Visitors can upload files and all registered and admin users can upload to personal and public galleries
their quota is set to max
but i still get the error `0 uploads were successful `

all the needed drectories are set to 777 or 755 for permissions so what is going on!?
Title: Re: how to set permissions for users
Post by: basicxman on June 07, 2008, 06:41:27 pm
lol i keep forgetting stuff

i know there are no PHP errors because as an admin i'm able to upload stuff and a user was previously able to upload to his personal gallery
Title: Re: how to set permissions for users
Post by: just_some_guy on June 07, 2008, 06:55:33 pm
Ok, I have changed the topic back to unsolved. You have not provided a link to your gallery, you need to do this and also ensure you have done what has been said in the "Upload Troubleshooting" section of the documentation and also read the sticky thread in this board. Plus, enable debug mode and post the error message you receive when you try to upload files.
Title: Re: how to set permissions for users
Post by: basicxman on June 07, 2008, 07:03:10 pm
lol srry: http://theroboticsuniverse.com/GalleryR/

all the PHP stuff is set properly in php.ini

error:
USER:
------------------
Array
(
    [ID] => a0fc21bd645f2e0c84668dc9a1837510
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

    [search] => Array
        (
            [search] => Gear Shifter
            [album] => search
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [type] => AND
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on
                )

        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 5
    [user_name] => demo_user
    [groups] => Array
        (
           
        )

    [disk_max] => 2147483647
    [disk_min] => 2147483647
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 1
    [num_file_upload] => 10
    [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] => 3
    [group_quota] => 2147483647
    [can_see_all_albums] => 0
    [group_id] => 2
)

==========================
Queries:
------------------
Array
(
    [control] => phase_1
)

==========================
Page generated in 0.054 seconds - 17 queries in 0 seconds - Album set : AND aid NOT IN (1,3,5,6,7,8,9,10,11,12,13) ; Meta set: ;
Title: Re: how to set permissions for users
Post by: just_some_guy on June 07, 2008, 07:11:10 pm
That's the debug output not the error, there will be an error message below the -  "0 uploads were successful".

Please enable debug mode for everybody so supporters can test the upload.

I see that Coppermine has been installed using an auto installer, this is not the recommended way of installing.
Title: Re: how to set permissions for users
Post by: basicxman on June 07, 2008, 07:13:00 pm
it is done
Title: Re: how to set permissions for users
Post by: just_some_guy on June 07, 2008, 07:30:08 pm
Your gallery seems to have some form of suppressed debug mode, it is missing the information about the PHP configuration etc in the output. There should be a more detailed error message shown when an upload fails and debug mode is enabled, currently there is no error message showing on your site, be it a consequence of using an auto installer and/or having a different debug mode i am not sure. Make sure that the width & max file size options in the config are great enough for the files you are trying to upload. Review your file permissions and PHP settings also.
Title: Re: how to set permissions for users
Post by: basicxman on June 07, 2008, 07:55:31 pm
i used an auto installer -> should I manual install?  how I can stop it from losing all my photos, i could save thme all but i would rather not have to upload so many photos
Title: Re: how to set permissions for users
Post by: basicxman on June 07, 2008, 07:59:54 pm
it is missing the information about the PHP configuration etc in the output.

there is under the debug mode click display phpinfo, it shows a bunch of stuff
Title: Re: how to set permissions for users
Post by: Fabricio Ferrero on June 08, 2008, 01:57:45 am
Quote
should I manual install?

It's always better.
Title: Re: how to set permissions for users
Post by: Joachim Müller on June 08, 2008, 02:01:00 am
No, just perform an upgrade as we suggest in the docs.
Title: Re: how to set permissions for users
Post by: Fabricio Ferrero on June 08, 2008, 10:04:20 pm
Quote
It's always better.

Sorry, I just try to explain that if he is going to install again (and decide not follow your advises) I recommend to do a manual installing. I mean, in general terms, always is prefered a manual installing.
Title: Re: how to set permissions for users
Post by: Joachim Müller on June 09, 2008, 07:39:43 am
Sure, manual installs as we suggest them in the docs are in fact the only supported install method. But if someone has used an auto-installer, we recommend not to perform a fresh install, but perform an upgrade, see http://documentation.coppermine-gallery.net/en/auto-installers.htm#no_support