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
-
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
(
- => SELECT extension, mime, content FROM cpg_filetypes;
[1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'd0763edaa9d9bd2a9516280e9044d885'
[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 cpg_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg_banned WHERE expiry < 1099848156
[5] => SELECT * FROM cpg_banned WHERE ip_addr='24.20.30.204' OR ip_addr='24.20.30.204' OR user_id=1
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.9 - OK
------------------
mySQL version: 4.0.22-standard
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home2/ddexmcom/:/usr/lib/php:/usr/local/lib/php:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.063 seconds - 6 queries in 0.001 seconds - Album set :
I am pretty sure it is "user error". I hope you can tel me what I am doing incorrectly.
Thanks,
Scott Davis
-
You've created an album and set it's permissions to allow uploads?
-
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
(
- => 1
[1] => 11
[2] => 10
[3] => 9
[4] => 18
)
[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
(
- => SELECT extension, mime, content FROM cpg_filetypes;
[1] => SELECT * FROM cpg_users WHERE user_id='7'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '81dc9bdb52d04dc20036dbd8313ed055'
[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 cpg_usergroups WHERE group_id in (2)
[3] => SELECT group_name FROM cpg_usergroups WHERE group_id= 2
[4] => DELETE FROM cpg_banned WHERE expiry < 1099971218
[5] => SELECT * FROM cpg_banned WHERE ip_addr='24.20.30.204' OR ip_addr='24.20.30.204' OR user_id=7
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.062 seconds - 6 queries in 0.001 seconds - Album set :
-
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
-
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.
-
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'.
-
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