OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: Animosity022 on September 16, 2017, 02:33:12 pm

Title: [SOLVED] Error on Boot with DynDns Package
Post by: Animosity022 on September 16, 2017, 02:33:12 pm
I'm seeing this pop up after I added in the DynDNS package:

Code: [Select]
[16-Sep-2017 08:29:36 America/New_York] PHP Fatal error:  Uncaught Error: Call to undefined function xml2array() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc:942
Stack trace:
#0 /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc(735): updatedns->_checkStatus(Resource id #481, '_update()
#2 /usr/local/etc/inc/plugins.inc.d/dyndns.inc(169): updatedns->__construct('namecheap', 'host.domain....', 'first.last@gma...', 'f646712c2fe2424...', NULL, '', 'wan', NULL, NULL, NULL, '', '1', '', '', '', 'wan', '0', true, false, false)
#3 /usr/local/etc/inc/plugins.inc.d/dyndns.inc(194): dyndns_configure_client(Array)
#4 /usr/local/etc/inc/plugins.inc(213): dyndns_configure_do(true)
#5 /usr/local/etc/rc.bootup(123): plugins_configure('bootup', true)
#6 {main}
  thrown in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 942

I removed my email/domain with some generic items.
Title: Re: Error on Boot with DynDns Package
Post by: opnsenseuser123 on September 17, 2017, 02:49:39 pm
I got the exact same issue, also with namecheap as my dyndns provider. Error occured after update to 17.7.2. dyndns updates not working anymore, which is kind of bad for my usecase.

Maybe some include is missing or something like that, because afaik xml2array is not a native php function...
Title: Re: Error on Boot with DynDns Package
Post by: opnsenseuser123 on September 17, 2017, 04:07:40 pm
Okay, nevermind, i found the solution on github, searched in the wrong project (core instead of plugins) before.

here you go: https://github.com/opnsense/plugins/issues/269

just ssh into your instance and run "opnsense-patch -c plugins da5ae3c"
Title: Re: Error on Boot with DynDns Package
Post by: Animosity022 on September 17, 2017, 05:51:37 pm
Thanks. That worked for me.
Title: Re: Error on Boot with DynDns Package
Post by: franco on September 18, 2017, 09:17:19 am
Will be fixed via 17.7.3 tomorrow.

Thanks for the reports and testing. :)


Cheers,
Franco