Lampwrights Forum

Lampwrights Forum (http://www.lampwrights.com/index.php)
-   vBulletin Wordpress Bridge (http://www.lampwrights.com/forumdisplay.php?f=13)
-   -   Critical - version-check is not responding (http://www.lampwrights.com/showthread.php?t=326)

legal 04-25-2012 04:56 PM

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

Jeff 04-25-2012 04:58 PM

It will cause an error if you just call it directly like that.

Jeff 04-25-2012 05:06 PM

What version of PHP are you using?

legal 04-25-2012 05:08 PM

Quote:

Originally Posted by Jeff (Post 1120)
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)

legal 04-25-2012 05:11 PM

# 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.

Jeff 04-25-2012 05:20 PM

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']) 



All times are GMT -4. The time now is 07:26 PM.

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