Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined property - PHP 8.1 related? #78

Open
StephanTexxpro opened this issue Sep 27, 2022 · 5 comments
Open

Undefined property - PHP 8.1 related? #78

StephanTexxpro opened this issue Sep 27, 2022 · 5 comments

Comments

@StephanTexxpro
Copy link

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!

@GaryAllan
Copy link
Collaborator

Hello,

phpIPAM isnt PHP8 compatible.

@StephanTexxpro
Copy link
Author

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?

@Yamdar
Copy link

Yamdar commented Oct 18, 2022

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 ?

@StephanTexxpro
Copy link
Author

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

@NHellFire
Copy link
Contributor

This one is actually a bug. It should be $this->config->type, and not $this->type

// if mysql selected
if ($this->type=="mysql") {
$required_ext = array_merge($required_ext, array("PDO", "pdo_mysql"));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants