webgui cannot edit / enable dnsmasq

Started by sfty1, February 14, 2019, 11:22:13 AM

Previous topic - Next topic
Hi,

when i enable or change some settings, everything is lost, after hitting the save button. Debug output says:


[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'enable' in /usr/local/www/services_dnsmasq.php on line 85
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'regdhcp' in /usr/local/www/services_dnsmasq.php on line 86
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 86
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'regdhcpstatic' in /usr/local/www/services_dnsmasq.php on line 87
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 87
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'dhcpfirst' in /usr/local/www/services_dnsmasq.php on line 88
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 88
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'strict_order' in /usr/local/www/services_dnsmasq.php on line 89
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 89
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'domain_needed' in /usr/local/www/services_dnsmasq.php on line 90
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 90
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'no_private_reverse' in /usr/local/www/services_dnsmasq.php on line 91
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 91
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'strictbind' in /usr/local/www/services_dnsmasq.php on line 92
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 92
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'dnssec' in /usr/local/www/services_dnsmasq.php on line 93
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 93
[14-Feb-2019 09:55:03 Europe/Berlin] PHP Warning:  Illegal string offset 'interface' in /usr/local/www/services_dnsmasq.php on line 100
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'enable' in /usr/local/www/services_dnsmasq.php on line 85
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'regdhcp' in /usr/local/www/services_dnsmasq.php on line 86
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 86
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'regdhcpstatic' in /usr/local/www/services_dnsmasq.php on line 87
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 87
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'dhcpfirst' in /usr/local/www/services_dnsmasq.php on line 88
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 88
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'strict_order' in /usr/local/www/services_dnsmasq.php on line 89
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 89
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'domain_needed' in /usr/local/www/services_dnsmasq.php on line 90
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 90
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'no_private_reverse' in /usr/local/www/services_dnsmasq.php on line 91
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 91
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'strictbind' in /usr/local/www/services_dnsmasq.php on line 92
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 92
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'dnssec' in /usr/local/www/services_dnsmasq.php on line 93
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 93
[14-Feb-2019 09:55:14 Europe/Berlin] PHP Warning:  Illegal string offset 'interface' in /usr/local/www/services_dnsmasq.php on line 100


can this be a bug?
thank you very much.

FreeBSD 11.2-RELEASE-p8-HBSD  31af16db12b(stable/19.1) amd64
OPNsense 19.1.1 35cd081ca
Plugins os-dyndns-1.12_1
Time Thu, 14 Feb 2019 11:20:23 +0100
OpenSSL 1.0.2q  20 Nov 2018
PHP 7.1.26


explanation: i'm unable to enable the dnsmasq service.

It seems like a bug in the web interface. It's possible to run the daemon in the shell with /usr/local/etc/rc.d/dnsmasq onestart but then i don't have the setting from the web interface.

can anybody confirm this?

I have same error with version 19.1.4

[03-Apr-2019 12:17:45 Europe/Oslo] PHP Warning:  Illegal string offset 'enable' in /usr/local/www/services_dnsmasq.php on line 85
[03-Apr-2019 12:17:45 Europe/Oslo] PHP Warning:  Illegal string offset 'regdhcp' in /usr/local/www/services_dnsmasq.php on line 86
[03-Apr-2019 12:17:45 Europe/Oslo] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 86
[03-Apr-2019 12:17:45 Europe/Oslo] PHP Warning:  Illegal string offset 'regdhcpstatic' in /usr/local/www/services_dnsmasq.php on line 87
[03-Apr-2019 12:17:45 Europe/Oslo] PHP Warning:  Cannot assign an empty string to a string offset in /usr/local/www/services_dnsmasq.php on line 87
[03-Apr-2019 12:17:45 Europe/Oslo] PHP Warning:  Illegal string offset 'dhcpfirst' in /usr/local/www/services_dnsmasq.php on line 88

Hi there,

Any solution to this problem out there? I have a fresh OPNSense install and dnsmasq will not start from the web interface, same behavior as described by the OP above. If I start dnsmasq manually, it works just fine, however.

uname -a:
FreeBSD gatekeeper 11.2-RELEASE-p10-HBSD FreeBSD 11.2-RELEASE-p10-HBSD  5e5adf26fc3(stable/19.1)  amd64

Cheers,

Hi there,
I am experiencing the same issue.

FreeBSD Opnsense.localdomain 11.2-RELEASE-p10-HBSD FreeBSD 11.2-RELEASE-p10-HBSD  5e5adf26fc3(stable/19.1)  amd64


¿Any ideas?

Regards

Solved by updating to OPNsense 19.7.

Rgds

I still have this error and i have the latest version : (

Can you share your /conf/config.xml content regarding <dnsmasq> ? it sounds like something strange is in the file and deleting the whole section should unbreak it.


Cheers,
Franco