From 81ab93be5b46d2caa39be07c41e15b8ef49f7db6 Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 14 Feb 2023 11:19:36 +0100 Subject: [PATCH] Update ophandlers.php updateAddress requires exactly 4 options, the call within importPTRData only submits 3, which results in this error: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function updateAddress(), 3 passed in /var/www/htdocs/RackTables/wwwroot/inc/ophandlers.php on line 2178 and exactly 4 expected in /var/www/htdocs/RackTables/wwwroot/inc/database.php:2600\nStack trace:\n#0 /var/www/htdocs/RackTables/wwwroot/inc/ophandlers.php(2178): updateAddress('\\xD4\\f6\\x02', 'reserve-router-...', 'no')\n#1 /var/www/htdocs/RackTables/wwwroot/index.php(232): importPTRData()\n#2 /var/www/htdocs/rackspace/index.php(11): require('/var/www/htdocs...')\n#3 {main}\n thrown in /var/www/htdocs/RackTables/wwwroot/inc/database.php on line 2600' --- wwwroot/inc/ophandlers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/inc/ophandlers.php b/wwwroot/inc/ophandlers.php index 145273418..0790a33af 100644 --- a/wwwroot/inc/ophandlers.php +++ b/wwwroot/inc/ophandlers.php @@ -2062,7 +2062,7 @@ function importPTRData () { if (! ip_in_range ($ip_bin, $net)) throw new InvalidArgException ('ip_bin', $ip_bin); - updateAddress ($ip_bin, $_REQUEST["descr_${i}"], $rsvd); + updateAddress ($ip_bin, $_REQUEST["descr_${i}"], $rsvd, ''); $ngood++; } catch (RackTablesError $e)