vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   4.2.x error on WP Bridge after upgrade (https://vborg.vbsupport.ru/showthread.php?t=283659)

SpikeSaunders 05-29-2012 08:22 PM

4.2.x error on WP Bridge after upgrade
 
Hello,

I use the plugin 'vbulletin-wordpress bridge' which has worked great from 3.x to 4.1.12. However with the upgrade to 4.2.x we're suddenly getting error.

Just curious if you can help out and figure out why the error below is now appearin on the wordpress site. :

Fatal error: Cannot redeclare class vB in /home/halkum1/public_html/vb/vb.php on line 30

Also at the top of the file (vb.php) is this single line. I don't recall it before but never looked either.

<?php if (!defined('VB_ENTRY')) die('Access denied.');

Is it due to this that a plugin for wordpress no longer can properly call the vbulletin files/sessions?

Any ideas would be great!
-I have also asked the modification/bridge developer but he doesn't use 4.x at all so isn't clear to what changed.

Thanks!
D

kh99 05-30-2012 12:21 AM

Without having any idea how that bridge works, I'd guess that maybe the bridge code defines a class vB, and it's conflicting with the one defined by the vb code. But assuming that's true, I don't know why it would only have started causing a problem with the latest version.

SpikeSaunders 05-30-2012 12:40 AM

Hello,

Yeah we got that figured out earlier today. Seems VB4.2 introduced class VB in vp.php? As that is the one being used on the Bridge all this time. Changing the class from VB to something else, like WPVB, in all instances and calls, fixed it. :)


All times are GMT. The time now is 11:29 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01159 seconds
  • Memory Usage 1,706KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete