Need to resolve a pesky “Non-static method should not be called statically” error?
Strict Standards: Non-static method PEAR::isError() should not be called statically in /var/www/index.php on line 30
First, go to the specific file and line number mentioned in the error. Chances are you will see something like “CLASSNAME::functionName($variable, $array, $other_things)”
To resolve the error, first create a new instance of the class:
$CLASSNAME = new CLASSNAME();
Then, call the function like normal:
$result = $CLASSNAME->functionName($variable, $array, $other_things)
It’s as simple as that.