View Single Post
  #113  
Old 06-25-2006, 01:44 PM
Pedro!'s Avatar
Pedro! Pedro! is offline
 
Join Date: Jun 2006
Location: England
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01250 seconds
  • Memory Usage 1,794KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete