View Single Post
  #609  
Old 12-13-2012, 08:02 AM
iMpuLzBe iMpuLzBe is offline
 
Join Date: Nov 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802 View Post
OK, had a strange issue...

I have my forums grouped together in three major cats. For example...
Category 100
- Forum 101
- Forum 102
- Forum 103

Category 200
- Forum 201
- Forum 202
- Forum 203

Category 300
- Forum 301
- Forum 302
- Forum 303
I have Cerberus configured so that Domain A has access to Category 100 & 200 while Domain B has access to Category 300.

While posting on Domain A in Forum 102 (just for example, but really any forum on Domain A) I was getting a 'No permissions' error. To get around that I disabled the unset permissions line from the "Forum Display" plugin used by Cerberus. Did not solve my problem but allowed me to continue so I could experiment. When I did continue my new thread that I was posting in Forum 102 ended up being posted in Forum 303!

So I poked around for a bit in the "Forum Display" plugin again and enabled the 'debug' lines so I could see what was going on in what sequence. Sure enough Forum 303 was the last forum ID that was being evaluated and, since I was on Domain A and not Domain B, it was removing that forum ID from the cache & permissions.

Going back to posting a new thread I did a view source on the page and could see that even though I was posting to Forum 102 in the URL the various buttons (eg: preview, save, etc.) were all referencing forum ID 303 instead. That led me to believe then that the variable $forumid being used in the plugin was not being preserved as a local scope variable and was being used by the rest of vB, hence why since forum ID 303 was the last one evaluated then that is where it was thinking I was trying to post to.

To confirm I changed all references in that plugin from $forumid to $forumidx to make it unique and repeated my experiments. Success!

This was with vBulletin 4.0.8 running on PHP 5.2.12 using the version of Cerberus in this thread.
Had the same problem, so it is still not fixed.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01366 seconds
  • Memory Usage 1,769KB
  • 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_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