Error in Vbulletin 4.2
Hello,
I know you have stated that this is for 3.x and have no intent on working with vb4.x, however it was working fine up to 4.1.12. :) Just curious if you can help out and figure out why the error : Fatal error: Cannot redeclare class vB in /home/halkum1/public_html/vb/vb.php on line 30 Is now appearing when going to the wordpress site, following upgrade to Vbulletin 4.2.0 ? They may have changed something I suppose which makes the wordpress bridge no longer work. This is line 29-38 on vb.php Code:
*/ <?php if (!defined('VB_ENTRY')) die('Access denied.'); Thanks! D |
You could try adding this to your wp-config.php file:
PHP Code:
|
Man, I wish that was that easy... but nope :(
Trying to find out from VB what changed as well. |
Will need to see the error from your error log.
|
Quote:
Code:
|
Well, if 4.x has a class called VB, then yeah, that is going to cause issues because I named the class VB in the loader. You could try renaming my class and then editing every instance of:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Interesting. Didn't think those conflicted.
I'll give it a try and let you know :) |
Hey Jeff,
It's working! Renamed all $VB class/instances/occurences to $WPVB4 which hopefully vbulletin's developers have no need to use hah. Just to be sure though were there any other files to the plugin but vbloader.php and vbbridge.php ? |
That's it. :)
|
Quote:
Hopefully this thread helps others then as that's one update on vbulletin that they changed something that actually broke the plugin that's based for vb3 :D |
I will have to change this class name in the next version just to avoid headaches lol.. Once I get some free time, I will do that and package it up.
|
Quote:
I can attach my vbbridge.php and vbloader.php files later if it helps. |
Quote:
|
1 Attachment(s)
Quote:
Keep in mind this isn't checked over by Jeff! It's also not been widely used as the site I work with is currently 'renovating' the design so we haven't even fully opened the access outside the Admin and Moderator groups :) |
I'm getting a different error than what is on here. Now, I'm running VB 4.2 and WP 3.4.1 so this may very well be the issue but this is what its saying:
Warning: include_once(/home/thegc315/public_html/wordpresstest/wp-content/plugins/vbbridge/vbloader.php) [function.include-once]: failed to open stream: No such file or directory in /home/thegc315/public_html/wordpresstest/wp-content/plugins/vbbridge.php on line 47 Warning: include_once() [function.include]: Failed opening '/home/thegc315/public_html/wordpresstest/wp-content/plugins/vbbridge/vbloader.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thegc315/public_html/wordpresstest/wp-content/plugins/vbbridge.php on line 47 Fatal error: Class 'WPVB4' not found in /home/thegc315/public_html/wordpresstest/wp-content/plugins/vbbridge.php on line 49 I tried using the posted files but it still says the same thing when I go to activate the plugin. Any ideas? |
Quote:
|
This plugin does NOT work for vbulletin 4.
|
Spike,
May i know which version of Wordpress you are using on vBulletin 4.1.12 ? Quote:
|
All times are GMT -4. The time now is 07:29 PM. |
Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.