Help with Looking Glass PHP Parse Error

Andy Shellam andy.shellam-lists at mailnetwork.co.uk
Mon Mar 19 23:14:39 CET 2007


Hi Mike,

It looks like you're using a version of PHP less than 5 (e.g. PHP 4.x).
The instanceof operator was introduced in PHP 5.  NLG's object-oriented 
programming model does not work with PHP 4.

Providing no other applications on your box depend on PHP 4, I'd 
recommend upgrading to the latest 5.2 release of PHP.

Andy.

Mike Davis wrote:
> I have a new issue that's a bit confusing... I am getting this when I 
> try and load the first page...
>
> *Parse error*: parse error in 
> */usr/share/nagios/share/client/s3_client.php* on line *327
>
>         // all OK so far, now need to decrypt and deserialize the class 
> data and check it is a valid class
>         $NLGPoller = unserialize(base64_decode($PollerFeed[4]));
> 327 >>if ($NLGPoller instanceof S3_NagiosPoller)
>         {
>                 if (defined("DEBUG_REQUIRED")) {echo "All data received 
> and decrypted OK\n\n";};
>
>                 $PollerObject = $NLGPoller;
>                 unset($NLGPoller);
>                 unset($PollerFeed);
>                 unset($PollerFeedRaw);
>                 return true;
>
> Any info on how to debug this?
> *
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>
> !DSPAM:37,45feed00103001866520864!
>
>
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list