phpipam-agent icon indicating copy to clipboard operation
phpipam-agent copied to clipboard

Undefined property - PHP 8.1 related?

Open StephanTexxpro opened this issue 2 years ago • 5 comments

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!

StephanTexxpro avatar Sep 27 '22 11:09 StephanTexxpro

Hello,

phpIPAM isnt PHP8 compatible.

GaryAllan avatar Sep 27 '22 12:09 GaryAllan

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?

StephanTexxpro avatar Sep 27 '22 15:09 StephanTexxpro

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.

Same issue as issue #74

Will we be lucky to have someone helping us on this matter ?

Yamdar avatar Oct 18 '22 17:10 Yamdar

As phpipam now seems to support PHP8.1 in 1.6, is there a chance to get this also fixed for the scan agent?

StephanTexxpro avatar Nov 22 '22 07:11 StephanTexxpro

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

NHellFire avatar Dec 25 '22 01:12 NHellFire