Thread: Add-On Releases - vBulletin-Glossary
View Single Post
  #184  
Old 10-15-2011, 02:11 PM
Seductor Seductor is offline
 
Join Date: May 2011
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vossi View Post
Can anybody re-construct the PM bug for me (with vB 4.1.6) ???
Hi there,

I'm using a blank vBulletin. I have not any other plugin installed and the error is showed when I try to access the PM folder.

Fatal error: Declaration of vB_Attachment_Store_vBGlossary_GlossaryEntry::veri fy_permissions() must be compatible with that of vB_Attachment_Store::verify_permissions() in /packages/vbglossary/attach/glossaryentry.php on line 363

This is verify_permissions() from the vB_Attachment_Store class:
PHP Code:
    abstract protected function verify_permissions($info = array());

    
/**
     * Verify permissions based on specified attachmentid
     *
     * @param int $attachmentid
     *
     * @return bool
     */
    
public function verify_permissions_attachmentid($attachmentid)
    {
        
$values $this->fetch_associated_contentinfo($attachmentid);
        return 
$this->verify_permissions($values);
    } 
This is yours:
PHP Code:
    /**
    * Verifies permissions to attach content to entries
    *
    * @return     boolean
    */
    
public function verify_permissions()
    {
        global 
$show;

        require_once(
DIR '/includes/functions_vbglossar.php');
        
        
$this->values['id'] = intval($this->values['id']) ? intval($this->values['id']) : intval($this->values['entryid']);

        if (
$this->values['id'])
        {
            
$this->entryinfo fetch_entryinfo($this->values['id']);
            
$this->contentid $this->values['id'];
            
$this->userinfo fetch_userinfo($this->entryinfo['userid']);
            
cache_permissions($this->userinfo);
        }
        else
        {
            if (
$userid intval($this->values['u']) AND $userinfo fetch_userinfo($userid))
            {
                
$this->userinfo $userinfo;
                
cache_permissions($this->userinfo);
            }
            else
            {
                
$this->userinfo $this->registry->userinfo;
            }
        }

        if (
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canentervbglossar'])
            OR
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canviewentry'])
            OR
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canattachtoentry'])
        )
        {
            
// no permission to view glossar, glossar entries or attachments
            
return false;
        }

        if (
            !(
$this->registry->userinfo['permissions']['groupvbglossar'] & $this->registry->bf_ugp_groupvbglossar['canadminvbglossar'])
            AND
            !
$this->entryinfo['status']
        )
        {
            
// no permission to moderate and entry is moderated
            
return false;
        }
        
        if (!
$this->entryinfo['groupshow'])
        {
            if (!
array_intersect(fetch_membergroupids_array($this->registry->userinfo), explode(','$this->attachmentinfo['groupshowlist'])))
            {
                
// usergroup is not allowed to access category
                
return -1;
            }
        }

        return 
true;
    } 
This is my debug info without Glossary enabled:
Quote:
Template Usage (20):
(1)USERCP_SHELL
(1)ad_footer_start
(1)ad_global_above_footer
(1)ad_global_below_navbar
(1)ad_global_header1
(1)ad_global_header2
(1)ad_navbar_below
(1)footer
(1)forumjump
(1)gobutton
(1)header
(1)headinclude
(1)headinclude_bottom
(1)navbar
(3)navbar_link
(1)option
(1)pm_messagelist
(1)spacer_close
(1)spacer_open
(3)usercp_nav_folderbit


Phrase Groups Available (7):
global
messaging
pm
postbit
posting
reputationlevel
user


Included Files (33):
./private.php
./global.php
./includes/class_bootstrap.php
./includes/init.php
./includes/class_core.php
./includes/config.php
./includes/functions.php
./includes/class_hook.php
./includes/functions_facebook.php
./includes/functions_user.php
./includes/functions_misc.php
./includes/class_bootstrap_framework.php
./vb/vb.php
./vb/phrase.php
./includes/class_friendly_url.php
./includes/functions_notice.php
./packages/vbattach/attach.php
./vb/collection/contenttype.php
./vb/collection.php
./vb/model.php
./vb/item/contenttype.php
./vb/item.php
./vb/types.php
./vb/cache.php
./vb/cache/db.php
./vb/cache/observer/db.php
./vb/cache/observer.php
./packages/vbforum/attach/album.php
./includes/functions_album.php
./packages/vbforum/attach/post.php
./includes/functions_forumlist.php
./packages/vbforum/attach/socialgroup.php
./includes/functions_socialgroup.php


Hooks Called (29):
init_startup
database_pre_fetch_array
database_post_fetch_array
fetch_userinfo_query
fetch_musername
fetch_userinfo
global_bootstrap_init_start
global_bootstrap_init_complete
cache_permissions
global_state_check
global_bootstrap_complete
global_start
style_fetch
global_setup_complete
forumjump
cache_templates
template_register_var
parse_templates
notices_check_start
friendlyurl_resolve_class
notifications_list
process_templates_complete
private_start
private_messagelist_start
usercp_nav_start
usercp_nav_complete
navbits
navbits_complete
private_complete
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01186 seconds
  • Memory Usage 1,843KB
  • 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
  • (2)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