Lampwrights Forum > Other Stuff > vBulletin Wordpress Bridge

Reply
 
Thread Tools
04-25-2012, 04:56 PM   #1
legal
Junior Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 0
legal is getting browny points
Critical - version-check is not responding

Dear author, your idea to make a checking of versions is not good
In the result the WP Control panel on the sites with installed vbbridge returns an error:
Quote:
FastCGI sent in stderr: "PHP Fatal error: Cannot use object of type WP_Error as array in /vhost/w
p-content/plugins/vbbridge/vbbridge.php on line 130" while reading response header from upstream, client:
Only commenting/deleting this part of code (near line 130) can solve the problem.

Code:
/*                                                                                                                                                                   
if ($vb->wp_vb_transportclass)
{
$transport = new $vb->wp_vb_transportclass;                                                                                                                            
$res = $transport->request( 'http://www.lampwrights.com/version.php', $r);
if ($res['body'])
{
$temp = unserialize($res['body']);
if (!empty($temp))
{
$response['body'] = unserialize($response['body']);
$response['body']['vbbridge/vbbridge.php'] = $temp;
$response['body'] = serialize($response['body']); 
}
}
}                                                                                                                                                                             
*/
I think, the issue is here:
http://www.lampwrights.com/version.php
Quote:
error

Last edited by legal; 04-25-2012 at 05:04 PM.
legal is offline   Reply With Quote

04-25-2012, 04:58 PM   #2
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
It will cause an error if you just call it directly like that.
Jeff is offline   Reply With Quote
04-25-2012, 05:06 PM   #3
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
What version of PHP are you using?
Jeff is offline   Reply With Quote
04-25-2012, 05:08 PM   #4
legal
Junior Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 0
legal is getting browny points
Quote:
Originally Posted by Jeff View Post
It will cause an error if you just call it directly like that.
Hmmm... So, do you know what the reason of the WP-Control Panel error?
Quote:
FastCGI sent in stderr: "PHP Fatal error: Cannot use object of type WP_Error as array in /vhost/wp-content/plugins/vbbridge/vbbridge.php on line 130" while reading response header from upstream, client:
...and why the deleting the part of code solves it?
(First post has been edited)

Last edited by legal; 04-25-2012 at 05:13 PM.
legal is offline   Reply With Quote
04-25-2012, 05:11 PM   #5
legal
Junior Member
 
Join Date: Jun 2011
Posts: 6
Rep Power: 0
legal is getting browny points
# php --version
PHP 5.3.8 (cli) (built: Aug 23 2011 15:23:25)

I use vbbridge during 2 years (thanks a lot), but this is the firt time i have a problem like this.
legal is offline   Reply With Quote
04-25-2012, 05:20 PM   #6
Jeff
Administrator
 
Jeff's Avatar
 
Join Date: Jul 2010
Posts: 402
Rep Power: 10
Jeff is getting browny points
Not sure why you would have this issue, but you might want to change this line:

PHP Code:
if ($res['body']) 
To:

PHP Code:
if (is_array($res) and $res['body']) 
Jeff is offline   Reply With Quote
Reply

Tags

vbulletin wordpress bridge


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 03:18 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2024, vBulletin Solutions, Inc.