forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: sdavis68 on November 07, 2004, 06:30:54 pm

Title: Sorry, there is no album where you are allowed to upload files
Post by: sdavis68 on November 07, 2004, 06:30:54 pm
Hi,

I read through the posts and tried to do what was suggested.

Here is my info,  site address http://www.3dexcellence.com

PHP version  4.3.9

OS  Linux

System settings:  File permissions for albums have been verified as set at 777

Have changed Coppermine settings to "single upload only"

The error message reads as:  "Sorry there is no album where you are allowed to upload files.

Below that  it reads:  "File:/home2/ddexmcom/public_html/galleryx/upload.php-Line 845"

Here is the debugging code generated:

USER:
------------------
Array
(
    [ID] => 2351c60b89efa47ed97533fb0586ddf3
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => sdadmin
    [user_password] => ********
    [user_lastvisit] => 2004-11-07 12:02:47
    [user_regdate] => 2004-11-05 13:39:10
    [user_group_list] =>
    [user_email] =>
    [user_website] => http://www.3dexcellence.com
    [user_location] => Vancouver, WA
    [user_interests] => computers, cg, kids, carnivals, trees, boating
    [user_occupation] => CG plugin designer, teacher
    [user_actkey] =>
    [disk_max] => 10000
    [disk_min] => 10000
    [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] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 0
    [group_quota] => 10000
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Sorry, there is no album where you are allowed to upload files
Post by: kegobeer on November 07, 2004, 06:45:42 pm
You've created an album and set it's permissions to allow uploads?
Title: Re: Sorry, there is no album where you are allowed to upload files
Post by: sdavis68 on November 09, 2004, 04:42:52 am
Hi,

Very inciteful.

I got the upload to work for the administrator, but am unable to get it to work for a registered user.  I checked the debug outputs for both situatiions and cannot see any differences that would cause this.  I have the new album files, where I loaded pics as an administrator, set at permission 777.

I am sure there is something obvious that is set incorrectly.  I have read through many of these other situations and have found nothing that really addresses this.  I have the debug info for the user attempt here.   ???

I appreciate any suggestions you might have.

The sit is at 3dexcellence.com

The system information is in the first email in this post.

Thanks,


Scott Davis   Debug file below



USER:
------------------
Array
(
    [ID] => 2351c60b89efa47ed97533fb0586ddf3
    [am] => 1
    [liv] => Array
        (
            [search] => ###
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 7
    [user_group] => 2
    [user_active] => YES
    [user_name] => dlarkin
    [user_password] => ********
    [user_lastvisit] => 2004-11-08 22:33:29
    [user_regdate] => 2004-11-07 15:22:52
    [user_group_list] =>
    [user_email] => dlarkin@yahoo.com
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 1000
    [disk_min] => 1000
    [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] => 1000
    [can_see_all_albums] => 0
    [group_id] => 2
    [groups] => Array
        (
            [1] => 2
        )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Sorry, there is no album where you are allowed to upload files
Post by: Joachim Müller on November 09, 2004, 09:09:22 am
read the docs: you either have to allow users to have personal galleries in "groups" (then the user has to create an album the upload could go to first), or you have to edit "groups" to allow users to upload to public galleries and edit album properties of at least one album to allow "visitors can upload".

Anyway, you have to set "Users can have private albums (Note: if you switch from 'yes' to 'no' any current private albums will become public)" to "yes" in coppermine config in the first place.

Joachim
Title: Re: Sorry, there is no album where you are allowed to upload files
Post by: Spinfist on November 12, 2004, 08:53:31 pm
sdavis, I had the same problem.  Turned out I was confused about some things.  First, I had created a category and didn't realize that I still hadn't placed an actual album in the category.  I got the same message.  So first, make sure you've actually created an album and placed it in the category you want it.  Once you do that, it should let you upload a file.  Second, make sure when you're logged in, switch over to Admin mode.  Even on my original admin account, it sometimes won't let me upload to some of the albums unless I'm in admin mode.  Not sure what all causes it, because I haven't done enough testing; just switch to admin mode to upload files.  It's easier.  Maybe that will help you a bit.

But I did just test the link after typing all of that and see files so you must've figured it out.   ;)  BTW, there's some really nice work in those galleries.  You should get involved with the PC games modding community.  They'd kill for those talents on their teams.
Title: Re: Sorry, there is no album where you are allowed to upload files
Post by: Casper on November 13, 2004, 12:41:30 am
Even on my original admin account, it sometimes won't let me upload to some of the albums unless I'm in admin mode.  Not sure what all causes it, because I haven't done enough testing; just switch to admin mode to upload files.

this means you have not changed the album properties to allow 'visitors can upload'.
Title: Re: Sorry, there is no album where you are allowed to upload files
Post by: Joachim Müller on November 14, 2004, 02:18:09 pm
In fact you should never leave admin mode - user mode is only meant to have a quick glance on the looks of your theme for "regular" users (without the admin whistles and bells). For real testing what a user can or can't do, you should create a test user account and log in with this particular account.

Joachim