Great job on the bridge but I'm experiancing the same problem as some other people with gallery permissions (in usermode).
This is the error:
Quote:
Originally Posted by Coppermine
Sorry there is no album where you are allowed to upload files
|
This is the detail:
Quote:
Originally Posted by Coppermine
File: /home/i/s/isketchforum/public_html/gallery/upload.php - Line: 874
|
And this is the debug info
Code:
USER:
------------------
Array
(
[ID] => **********************
[am] => 0
[lang] => english
[theme] => mac_ox_x
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 3
[user_name] => Petay
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 0
[ufc_min] => 0
[custom_user_upload] => 0
[num_file_upload] => 1
[num_URI_upload] => 0
[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] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0.001s)
[1] => select * from cpg148_plugins order by priority asc; (0s)
[2] => SELECT * FROM cpg148_bridge (0s)
[3] => SELECT u.userid, u.password, u.usergroupid+100 AS usergroupid FROM `isketchforum`.vBuser AS u, `isketchforum`.vBsession AS s WHERE s.userid=u.userid AND s.sessionhash='********************' (0.001s)
[4] => SELECT u.userid AS id, u.username AS username, u.password AS password, u.usergroupid+100 AS group_id FROM `isketchforum`.vBuser AS u INNER JOIN `isketchforum`.vBusergroup AS g ON u.usergroupid=g.usergroupid WHERE u.userid='3' (0.001s)
[5] => 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 cpg148_usergroups WHERE group_id in (1) (0.001s)
[6] => SELECT group_name FROM cpg148_usergroups WHERE group_id= 1 (0s)
[7] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 3 (0s)
[8] => DELETE FROM cpg148_banned WHERE expiry < '2006-06-25 14:36:04' (0s)
[9] => SELECT * FROM cpg148_banned WHERE (ip_addr='81.151.219.20' OR ip_addr='81.151.219.20' OR user_id=3) AND brute_force=0 (0s)
[10] => SELECT aid, title FROM cpg148_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (1)) ORDER BY title (0.001s)
[11] => SELECT aid, title FROM cpg148_albums WHERE category='10003' ORDER BY title (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.084 seconds - 12 queries in 0.005 seconds - Album set : ; Meta set: ;
The odd thing is line 874 of upload.php is just a comment.
This is an extract of the PHP code starting with line 870 and finishing on line 877:
PHP Code:
// Create the upload forms using the upload congfiguration.
if (!isset($_REQUEST['control'])) {
// Do some cleanup in the edit directory.
spring_cleaning('./'.$CONFIG['fullpath'].'edit',CPG_HOUR);
// Do some cleaning in the temp data table.
Line 873 looks like it might be something to do with it though :ermm: