Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Cannot add uploaded file to album?  (Read 2516 times)

0 Members and 1 Guest are viewing this topic.

wfx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
    • Winki The Ripper , TEG
Cannot add uploaded file to album?
« on: December 09, 2006, 06:04:04 pm »

hi,
i read the faq (more then once) and a lot post here but i cant find the fault.
Coppermine is on http://winki-the-ripper.de/coppermine/
My prob is i cant upload a file via file upload or in batch mode (same error).
File Upload: file upload -> select file -> message file is up -> continue -> i select the album and press continue ->
fail with:
Code: [Select]
Kein Album ausgewählt ([b]means "no album selected"[/b])

Datei: /var/www/html/web355/html/coppermine/upload.php - Zeile: 2106
Debug info:
Code: [Select]
USER:
------------------
Array
(
    [ID] => ff27b7ca1cf59382939bf6e6e8ab77b8
    [am] => 1
    [lang] => german
    [liv] => Array
        (
            [0] => 15
            [1] => 14
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [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 cpg149_filetypes; (0.001s)
    [1] => select * from cpg149_plugins order by priority asc; (0s)
    [2] => delete from `usr_web355_1`.cpg149_sessions where time<1165679072 and remember=0; (0.001s)
    [3] => delete from `usr_web355_1`.cpg149_sessions where time<1164473072; (0s)
    [4] => select user_id from `usr_web355_1`.cpg149_sessions where session_id=md5("8635fa5175f43e06f9733bc4138731d04b68f66aed2cb89b00dab93122f434bc"); (0s)
    [5] => select user_id as id, user_password as password from `usr_web355_1`.cpg149_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 `usr_web355_1`.cpg149_users AS u INNER JOIN `usr_web355_1`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `usr_web355_1`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0s)
    [10] => update `usr_web355_1`.cpg149_sessions set time='1165682672' where session_id=md5('8635fa5175f43e06f9733bc4138731d04b68f66aed2cb89b00dab93122f434bc'); (0s)
    [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg149_banned WHERE expiry < '2006-12-09 17:44:32' (0s)
    [13] => SELECT * FROM cpg149_banned WHERE (ip_addr='213.33.10.88' OR ip_addr='213.33.10.88' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg149_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg149_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0s)
)

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

==========================
POST :
------------------
Array
(
    [album] => 0
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => d7673c87
    [debugtext] => USER:
------------------
Array
(
    [ID] => ff27b7ca1cf59382939bf6e6e8ab77b8
    [am] => 1
    [lang] => german
    [liv] => Array
        (
            [0] => 15
            [1] => 14
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [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 cpg149_filetypes; (0.001s)
    [1] => select * from cpg149_plugins order by priority asc; (0.001s)
    [2] => delete from `usr_web355_1`.cpg149_sessions where time<1165679034 and remember=0; (0.001s)
    [3] => delete from `usr_web355_1`.cpg149_sessions where time<1164473034; (0s)
    [4] => select user_id from `usr_web355_1`.cpg149_sessions where session_id=md5("8635fa5175f43e06f9733bc4138731d04b68f66aed2cb89b00dab93122f434bc"); (0s)
    [5] => select user_id as id, user_password as password from `usr_web355_1`.cpg149_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 `usr_web355_1`.cpg149_users AS u INNER JOIN `usr_web355_1`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
    [7] => SELECT user_group_list FROM `usr_web355_1`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0s)
    [10] => update `usr_web355_1`.cpg149_sessions set time='1165682634' where session_id=md5('8635fa5175f43e06f9733bc4138731d04b68f66aed2cb89b00dab93122f434bc'); (0s)
    [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg149_banned WHERE expiry < '2006-12-09 17:43:55' (0.001s)
    [13] => SELECT * FROM cpg149_banned WHERE (ip_addr='213.33.10.88' OR ip_addr='213.33.10.88' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg149_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg149_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT encoded_string FROM cpg149_temp_data WHERE unique_ID = 'd7673c87' (0s)
    [17] => UPDATE cpg149_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxOToiMDFfcGFnZV9saWNlbnNlLnBuZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfYjM1YmRjNWYucG5nIjtzOjEyOiJwcmV2aWV3X3BhdGgiO3M6MzQ6Ii4vYWxidW1zL2VkaXQvcHJldmlld183ZDY5ZjA0Ny5wbmciO319' WHERE unique_ID = 'd7673c87' (0.001s)
    [18] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.001s)
    [19] => SELECT cat.name FROM cpg149_categories cat, cpg149_albums alb WHERE alb.aid='0' AND cat.cid=alb.category (0.001s)
    [20] => SELECT cat.name FROM cpg149_categories cat, cpg149_albums alb WHERE alb.aid='3' AND cat.cid=alb.category (0s)
    [21] => SELECT cat.name FROM cpg149_categories cat, cpg149_albums alb WHERE alb.aid='2' AND cat.cid=alb.category (0s)
)

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

==========================
POST :
------------------
Array
(
    [unique_ID] => d7673c87
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => ff27b7ca1cf59382939bf6e6e8ab77b8
    [am] => 1
    [lang] => german
    [liv] => Array
        (
            [0] => 15
            [1] => 14
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [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 cpg149_filetypes; (0.001s)
    [1] => select * from cpg149_plugins order by priority asc; (0s)
    [2] => delete from `usr_web355_1`.cpg149_sessions where time<1165678970 and remember=0; (0s)
    [3] => delete from `usr_web355_1`.cpg149_sessions where time<1164472970; (0s)
    [4] => select user_id from `usr_web355_1`.cpg149_sessions where session_id=md5("8635fa5175f43e06f9733bc4138731d04b68f66aed2cb89b00dab93122f434bc"); (0s)
    [5] => select user_id as id, user_password as password from `usr_web355_1`.cpg149_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 `usr_web355_1`.cpg149_users AS u INNER JOIN `usr_web355_1`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `usr_web355_1`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0s)
    [10] => update `usr_web355_1`.cpg149_sessions set time='1165682570' where session_id=md5('8635fa5175f43e06f9733bc4138731d04b68f66aed2cb89b00dab93122f434bc'); (0s)
    [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg149_banned WHERE expiry < '2006-12-09 17:42:50' (0s)
    [13] => SELECT * FROM cpg149_banned WHERE (ip_addr='213.33.10.88' OR ip_addr='213.33.10.88' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg149_albums WHERE category < 10000 ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg149_albums WHERE category='10001' ORDER BY title (0s)
    [16] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.001s)
    [17] => SELECT unique_ID FROM cpg149_temp_data (0s)
    [18] => INSERT INTO cpg149_temp_data VALUES ('d7673c87', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxOToiMDFfcGFnZV9saWNlbnNlLnBuZyI7czoxNDoidGVtcG9yYXJ5X25hbWUiO3M6MjM6Im1IVFRQX3RlbXBfYjM1YmRjNWYucG5nIjt9fQ==', '1165682570') (0s)
)

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

==========================
POST :
------------------
Array
(
    [URI_array] => Array
        (
            [0] =>
            [1] =>
            [2] =>
        )

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /var/www/html/empty | no value
safe_mode_gid | On | On
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /var/www/html/empty | no value
sql.safe_mode | Off | Off
disable_functions | proc_open, system, shell_exec, passthru, show_source | proc_open, system, shell_exec, passthru, show_source
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /var/www/html/web355/ | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail.postfix -t -i | /usr/sbin/sendmail.postfix -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 | 30 | 30
upload_max_filesize | 16M | 16M
post_max_size | 8M | 8M
==========================
Page generated in 0.448 seconds - 19 queries in 0.004 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /var/www/html/empty | no value
safe_mode_gid | On | On
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /var/www/html/empty | no value
sql.safe_mode | Off | Off
disable_functions | proc_open, system, shell_exec, passthru, show_source | proc_open, system, shell_exec, passthru, show_source
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /var/www/html/web355/ | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail.postfix -t -i | /usr/sbin/sendmail.postfix -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 | 30 | 30
upload_max_filesize | 16M | 16M
post_max_size | 8M | 8M
==========================
Page generated in 0.661 seconds - 22 queries in 0.01 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10 - OK
------------------
mySQL version: 3.23.58
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.1.4
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /var/www/html/empty | no value
safe_mode_gid | On | On
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /var/www/html/empty | no value
sql.safe_mode | Off | Off
disable_functions | proc_open, system, shell_exec, passthru, show_source | proc_open, system, shell_exec, passthru, show_source
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | /var/www/html/web355/ | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail.postfix -t -i | /usr/sbin/sendmail.postfix -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 | 30 | 30
upload_max_filesize | 16M | 16M
post_max_size | 8M | 8M
==========================
Page generated in 0.421 seconds - 17 queries in 0.004 seconds - Album set : ; Meta set: ;

phpinfo:
Code: [Select]
...
file_uploads On On
...
upload_max_filesize 16M 16M
...

The premissions for each folder folder are 755  (./albums/ftpup/bg albums/ftpup/en ...)
The files in the ftpup folder are set to 770 and Coppermine have created  normal_FILENAME and thump_FILENAME
in the selected folder.

thx a lot
wfx.
 
« Last Edit: December 10, 2006, 11:27:59 pm by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Cannot add uploaded file to album?
« Reply #1 on: December 10, 2006, 01:07:38 pm »

Do exactly as suggested in the upload troubleshooting section of the docs if you want help.
Logged

wfx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 2
    • Winki The Ripper , TEG
Re: Cannot add uploaded file to album?
« Reply #2 on: December 10, 2006, 11:02:38 pm »

I have do and test the Testuser but the have not right at all?
So the User is useless for help.
Something goes completely wrong and now it is crashed (bad).
My fault, see it, like it(template system), use it.

I'm sorry but i remove it(to much problems).

Thank
Wolfgang.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.