Ошибка

Non-static method Site::encodeUrl() should not be called statically