1
22.1 Legacy Series / os-ddclient 1.7 - PHP Error
« on: June 24, 2022, 08:08:45 am »
Hello!
Just updated OPNsense to 22.1.9-amd64. Then i was trying to add a new service to os-ddclient-1.7. Resulted in an PHP-Error. Anyone else facing this issue?
[24-Jun-2022 08:05:09 Europe/Berlin] Exception: Error at /usr/local/opnsense/mvc/app/models/OPNsense/DynDNS/FieldTypes/AccountField.php:55 - Undefined index: ip (errno=8) in /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiControllerBase.php:152
Stack trace:
#0 /usr/local/opnsense/mvc/app/models/OPNsense/DynDNS/FieldTypes/AccountField.php(55): OPNsense\Base\ApiControllerBase->APIErrorHandler(8, 'Undefined index...', '/usr/local/opns...', 55, Array)
#1 /usr/local/opnsense/mvc/app/models/OPNsense/DynDNS/FieldTypes/AccountField.php(76): OPNsense\DynDNS\FieldTypes\AccountField->addStatsFields(Object(OPNsense\Base\FieldTypes\ContainerField))
#2 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(193): OPNsense\DynDNS\FieldTypes\AccountField->actionPostLoadingEvent()
#3 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#4 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#5 /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php(361): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#6 [internal function]: OPNsense\Base\BaseModel->__construct()
#7 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableServiceControllerBase.php(96): ReflectionClass->newInstance()
#8 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableServiceControllerBase.php(207): OPNsense\Base\ApiMutableServiceControllerBase->getModel()
#9 [internal function]: OPNsense\Base\ApiMutableServiceControllerBase->statusAction()
#10 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\DynDNS\Api\ServiceController), 'statusAction', Array)
#11 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#12 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle('/api/dyndns/ser...')
#13 {main}
Just updated OPNsense to 22.1.9-amd64. Then i was trying to add a new service to os-ddclient-1.7. Resulted in an PHP-Error. Anyone else facing this issue?
[24-Jun-2022 08:05:09 Europe/Berlin] Exception: Error at /usr/local/opnsense/mvc/app/models/OPNsense/DynDNS/FieldTypes/AccountField.php:55 - Undefined index: ip (errno=8) in /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiControllerBase.php:152
Stack trace:
#0 /usr/local/opnsense/mvc/app/models/OPNsense/DynDNS/FieldTypes/AccountField.php(55): OPNsense\Base\ApiControllerBase->APIErrorHandler(8, 'Undefined index...', '/usr/local/opns...', 55, Array)
#1 /usr/local/opnsense/mvc/app/models/OPNsense/DynDNS/FieldTypes/AccountField.php(76): OPNsense\DynDNS\FieldTypes\AccountField->addStatsFields(Object(OPNsense\Base\FieldTypes\ContainerField))
#2 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(193): OPNsense\DynDNS\FieldTypes\AccountField->actionPostLoadingEvent()
#3 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#4 /usr/local/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseField.php(191): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#5 /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php(361): OPNsense\Base\FieldTypes\BaseField->eventPostLoading()
#6 [internal function]: OPNsense\Base\BaseModel->__construct()
#7 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableServiceControllerBase.php(96): ReflectionClass->newInstance()
#8 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableServiceControllerBase.php(207): OPNsense\Base\ApiMutableServiceControllerBase->getModel()
#9 [internal function]: OPNsense\Base\ApiMutableServiceControllerBase->statusAction()
#10 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->callActionMethod(Object(OPNsense\DynDNS\Api\ServiceController), 'statusAction', Array)
#11 [internal function]: Phalcon\Dispatcher\AbstractDispatcher->dispatch()
#12 /usr/local/opnsense/www/api.php(26): Phalcon\Mvc\Application->handle('/api/dyndns/ser...')
#13 {main}