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

Adding a new IP failed after upgrading to php8.1.2 #4115

Open
Musonick58 opened this issue May 15, 2024 · 2 comments
Open

Adding a new IP failed after upgrading to php8.1.2 #4115

Musonick58 opened this issue May 15, 2024 · 2 comments

Comments

@Musonick58
Copy link

Describe the bug
After upgrading the server from php7.4.x to php8.1.2, I cannot add IPs to any subnet.

  • phpIPAM version: [1.6.0]
  • OS [Ubuntu 22.04.4 64bit]
  • PHP version [php 8.1.2 64bit]
  • Webserver [Apache]
  • Database [mariadb Ver 15.1 Distrib 10.6.16-MariaDB]

Steps To Reproduce
Please include steps to reproduce the issue:

  1. Go to a subnet e.g. '/index.php?page=subnets&section=1&subnetId=123'
  2. Click on 'ADD new IP'
  3. Compile the form
  4. Click on '+ ADD IP'
  5. See error

Screenshots and error logs
Warning: Undefined array key ptr in /var/www/phpipam/app/subnets/addresses/address-modify.php on line 211
Error: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: ' Warning: Undefined array key ' for column 'DBANME.ipaddresses.PTR at row 1'

immagine

Workaround
I've commented the file /var/www/phpipam/app/subnets/addresses/address-modify.php at line 211
and now I can save as usual.

@Musonick58
Copy link
Author

Same as #4090

@linedpaper
Copy link

Having the same issue, also had to comment out line 474 in print-address-table.php

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

No branches or pull requests

2 participants