Jump to content

Non-Static Method Pear::iserror() Should Not Be Called Statically


Recommended Posts

( ! ) Strict standards: Non-static method Log::singleton() should not be called statically in /home/adsman/revive/lib/OA.php on line 148 Call Stack # Time Memory Function Location 1 0.0004 253368 {main}( ) ../RevMax-index.php:0 2 0.2408 21686976 SimplePie->init( ) ../RevMax-index.php:72 3 1.7866 21998336 trigger_error ( ) ../simplepie.inc:1773 4 1.7866 22000584 MAX_ErrorHandler->errHandler( ) ../simplepie.inc:1773 5 1.7866 22001000 OA::debug( ) ../ErrorHandler.php:109

( ! ) Strict standards: Non-static method Log::factory() should not be called statically in /home/adsman/revive/lib/pear/Log.php on line 200 Call Stack # Time Memory Function Location 1 0.0004 253368 {main}( ) ../RevMax-index.php:0 2 0.2408 21686976 SimplePie->init( ) ../RevMax-index.php:72 3 1.7866 21998336 trigger_error ( ) ../simplepie.inc:1773 4 1.7866 22000584 MAX_ErrorHandler->errHandler( ) ../simplepie.inc:1773 5 1.7866 22001000 OA::debug( ) ../ErrorHandler.php:109 6 1.7878 22002304 Log::singleton( ) ../OA.php:148

( ! ) Strict standards: Non-static method PEAR::isError() should not be called statically in /home/adsman/revive/lib/OA.php on line 150 Call Stack # Time Memory Function Location 1 0.0004 253368 {main}( ) ../RevMax-index.php:0 2 0.2408 21686976 SimplePie->init( ) ../RevMax-index.php:72 3 1.7866 21998336 trigger_error ( ) ../simplepie.inc:1773 4 1.7866 22000584 MAX_ErrorHandler->errHandler( ) ../simplepie.inc:1773 5 1.7866 22001000 OA::debug( ) ../ErrorHandler.php:109

 

Link to comment
Share on other sites

A more appropriate fix might be to use the following patch:

 

-        if (PEAR::isError($message)) {                                                                                                    
+        if ((new PEAR)->isError($message)) {

Link to comment
Share on other sites

1. yep (fixed).

 

2. yep.

 

3. yep, I posted this before I realized RevMax was unrelated to Revive, (just FYI). I also notice that RevMax is unsupported now.

 

4. If you want to remove the post as 'non-relevant to revive', that would seem reasonable.

 

If you see strict standards error messages there's something wrong with your setup, as they should be hidden.

 

Also, judging by the output above an extension (xdebug?) is messing up with error messages.

 

Finally, RevMax is a 3rd party product and you shouldn't be searching for support about it here ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...