coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: jimdavis on August 21, 2004, 02:04:38 AM

Title: [Solved]: Need debug help
Post by: jimdavis on August 21, 2004, 02:04:38 AM
I can upload photos but can't get them in the album. Here is a debug output when I login as admin:

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

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_group] => 1
   [user_active] => YES
   [user_name] => rockford
   [user_password] => ********
   [user_lastvisit] => 2004-08-20 19:58:59
   [user_regdate] => 2004-08-20 18:45:00
   [user_group_list] =>
   [user_email] =>
   [user_website] =>
   [user_location] =>
   [user_interests] =>
   [user_occupation] =>
   [user_actkey] =>
   [user_favpics] =>
   [disk_max] => 1024
   [disk_min] => 1024
   [can_rate_pictures] => 1
   [can_send_ecards] => 1
   [ufc_max] => 3
   [ufc_min] => 3
   [custom_user_upload] => 1
   [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] => 3
   [group_quota] => 1024
   [can_see_all_albums] => 1
   [group_id] => 1
   [groups] => Array
       (
           [1] => 1
       )

)

==========================
Queries:
------------------
Array
(
   
Title: Re: Need debug help
Post by: Joachim Müller on August 21, 2004, 03:22:45 AM
debug output alone won't help. Describe your problem in more details, with the full error message you get. Next time, post on the proper support board - I moved your posting for you. A link and test user account (non-admin) with upload permissions might help as well.
Make sure you have read the sticky threads (the ones with a pin icon) on the upload board. Make sure you have CHMODed as suggested in the docs.

GauGau
Title: Re: Need debug help
Post by: jimdavis on August 21, 2004, 07:37:36 AM
When I go to the upload page these errors are displayed:
Notice: Undefined offset: 2 in /home/realty4/public_html/album/upload.php on line 250
Notice: Undefined offset: 3 in /home/realty4/public_html/album/upload.php on line 256
Notice: Undefined offset: 4 in /home/realty4/public_html/album/upload.php on line 256

When I upload a couple of files I get this message:
2 uploads were successful.
Please click 'Continue' to add the files to albums.

When I try to add the photo to the album I get the following errors:
Notice: Undefined index: user1 in /home/realty4/public_html/album/upload.php on line 2146
Notice: Undefined index: user2 in /home/realty4/public_html/album/upload.php on line 2147
Notice: Undefined index: user3 in /home/realty4/public_html/album/upload.php on line 2148
Notice: Undefined index: user4 in /home/realty4/public_html/album/upload.php on line 2149

Warning: rename(): SAFE MODE Restriction in effect. The script whose uid is 32344 is not allowed to access /home/realty4/public_html/album/albums/userpics/10001 owned by uid 99 in /home/realty4/public_html/album/upload.php on line 2226

I have set up an account with Testuser as both username and password. I am not sure how to set permission for Testuser to upload files.

Jim


Title: Re: Need debug help
Post by: Joachim Müller on August 21, 2004, 10:10:48 AM
disable "Display notices in debug mode" in coppermine config to get rid of the notices - you're only meant to enable them if you know what the output means.
Try setting silly_safe_mode as suggested in the docs: http://coppermine.sourceforge.net/manual.php#safe

GauGau
Title: Re: Need debug help
Post by: jimdavis on August 21, 2004, 04:18:16 PM
Thanks - Problem fixed.