If the method is only loosely defined in scope it causes this error.
Basically you probably have this code:
class clsCheckUser
{
function CheckUser()
{
// do something to check the user
return true;
}
}
THen you use this methodology to call the CheckUser method:
clsCheckUser::CheckUser()
The error is saying that you haven't defined precisely how one is to access this method, and therefore it shouldn't be accessed statically. While it does work (since it does for backward compatibility), it's not "correct". You should be scoping your methods and properties:
class clsCheckUser
{
static function CheckUser()
{
// do something
return true;
}
}
Hope that helps.