phpipam-agent
phpipam-agent copied to clipboard
Undefined property - PHP 8.1 related?
Hi,
running the agent with
php index.php update
throws
PHP Warning: Undefined property: phpipamAgent::$type in /tmp/phpipam-agent/functions/classes/class.phpipamAgent.php on line 375
No update is happening.
Might be a problem with PHP 8.1?
Thx for any help!
Hello,
phpIPAM isnt PHP8 compatible.
Thx for reply - I'm aware of that, however phpipam itself seems to work fine with 8.1 (at least or me). Any idea, when (if?) 8.1 will be supported?
Same problem here. We were using this agent on Ubuntu 20.04 and php 7.4, all was working fine. on 22.04, php 8.1, i got the same issue but what is strange is that it seems to work. The only problem is that, on discovery it will discover all the hosts of a subnet and will show them available even if they are not and if the on-screen result when running the command is correct.
Will we be lucky to have someone helping us on this matter ?
As phpipam now seems to support PHP8.1 in 1.6, is there a chance to get this also fixed for the scan agent?
This one is actually a bug. It should be $this->config->type
, and not $this->type
https://github.com/phpipam/phpipam-agent/blob/9d62568ab188aa82289424e77776b77133e03b13/functions/classes/class.phpipamAgent.php#L374-L377