Closed jdcoats closed 2 weeks ago
Are you using PHP 8.1? I found the function strlen() will not accept null parameter in PHP 8.1. So please run the following sql statement in mysqladmin to fix the columns's default value with null, and then I will propose the PR to the current development repo.
update mac_track_sites set skip_vlans=''; update mac_track_sites set scan_vlans=''; update mac_track_devices set scan_trunk_port='';
The second issue looks like when run upgrade process, does it continue to show the log?
yes php 8.1, im out today for a while but will check back in with status later. Thanks!
okay so just the upgrade backtraces remain.
Might want to make the defaults on those columns "" as well.
I stopped using strlen()
a long time ago, but it's use is still out there everywhere. I now use $blah != ""
. If it's a request variable isset_request_var()
.
@jdcoats
I tried the second issue in my lab, it will appear the same log once time when upgrade plugin because setup.php will run mactrack_setup_database and mactrack_upgrade_database. These two functions will insert the same data into device type table.
thanks! It did only happen the 1st run.
This started this morning after grabbing the pull req's from @xxconn
a bunch of dup entry messages for device types