Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Error in upload.php file...Line 864  (Read 3919 times)

0 Members and 1 Guest are viewing this topic.

PcMichu

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Error in upload.php file...Line 864
« on: June 21, 2007, 11:12:56 am »

Hi,
I have problem with upload images to galery...
When user want to upload file error messaga apear :

Error
Sorry. You cant send files to any album.

File: /coppermine/upload.php - Line: 864 

Can You help me?
« Last Edit: June 22, 2007, 10:27:08 am by Hein »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Error in upload.php file...Line 864
« Reply #1 on: June 21, 2007, 02:23:37 pm »

Welcome to the CPG support forum.

Read through this part of the documentation first: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Logged

PcMichu

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Error in upload.php file...Line 864
« Reply #2 on: June 22, 2007, 08:00:36 am »

Hi Hein,
I read it and I try to search reply for my question on board but I cant find it.

Pleas, can you help me?
Logged

PcMichu

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Error in upload.php file...Line 864
« Reply #3 on: June 22, 2007, 08:04:15 am »

Aaa..I forgot :

Code: [Select]
USER:
------------------
Array
(
    [ID] => dcd9a177dbbf55600a78d43df88ae78d
    [am] => 0
    [lang] => polish
    [liv] => Array
        (
            [0] => 1
            [1] => 2
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => PcMichu
    [groups] => Array
        (
            [0] => 1
        )

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0s)
    [1] => select * from cpg1410_plugins order by priority asc; (0s)
    [2] => delete from `my_612186_foto`.cpg1410_sessions where time<1182488549 and remember=0; (0s)
    [3] => delete from `my_612186_foto`.cpg1410_sessions where time<1181282549; (0s)
    [4] => select user_id from `my_612186_foto`.cpg1410_sessions where session_id=md5("bdad2df76d280630c18fc4df2a69ef4aa020f18d5785251dea1089ee9d3087f1"); (0s)
    [5] => select user_id as id, user_password as password from `my_612186_foto`.cpg1410_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `my_612186_foto`.cpg1410_users AS u INNER JOIN `my_612186_foto`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `my_612186_foto`.cpg1410_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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 cpg1410_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 1 (0s)
    [10] => update `my_612186_foto`.cpg1410_sessions set time='1182492149' where session_id=md5('bdad2df76d280630c18fc4df2a69ef4aa020f18d5785251dea1089ee9d3087f1'); (0s)
    [11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg1410_banned WHERE expiry < '2007-06-22 06:02:29' (0s)
    [13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='62.148.79.226' OR ip_addr='62.148.79.226' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg1410_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (1)) ORDER BY title (0s)
    [15] => SELECT aid, title FROM cpg1410_albums WHERE category='10001' ORDER BY title (0s)
)

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

==========================
POST :
------------------
Array
(
)

==========================
Page generated in 0.475 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;
« Last Edit: June 22, 2007, 08:22:10 am by Hein »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Error in upload.php file...Line 864
« Reply #4 on: June 22, 2007, 08:23:33 am »

Please post debug output with
Code: [Select]
blocks.

And read the documentation thoroughly. Especially the red part where it says
Quote
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, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.
Logged

PcMichu

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Error in upload.php file...Line 864
« Reply #5 on: June 22, 2007, 08:40:17 am »

I'm sorry Hein..My english is not so good.

My galery site :

http://bigfishpila.my-php.net/coppermine/index.php

Test user account :
Code: [Select]
Login : Test
Pass : Test
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Error in upload.php file...Line 864
« Reply #6 on: June 22, 2007, 08:56:58 am »

I logged in succesfully. It appears you have not turned on the option for upload in any of the albums. That;s why you get a message saying there is no album into which can be uploaded.

How to set a album up for upload is written here: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#album_prop
Logged

PcMichu

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Error in upload.php file...Line 864
« Reply #7 on: June 22, 2007, 10:11:33 am »

 :D it's a life ! it's a life :] thx man
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.