[SOLVED] Warning message on dhcpv6 server page in service menu

Started by bringha, December 16, 2015, 10:12:42 PM

Previous topic - Next topic
Hallo,

since 15.7.20, I get the following warning message on the dhcpv6 which also did not disappear after upgrade to 15.7.22:

Warning: Illegal string offset 'wan' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'wan' in /usr/local/www/services_dhcpv6.php on line 463 Warning: Illegal string offset 'lan' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'lan' in /usr/local/www/services_dhcpv6.php on line 463 Warning: Illegal string offset 'opt1' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'opt1' in /usr/local/www/services_dhcpv6.php on line 463 Warning: Illegal string offset 'opt2' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'opt2' in /usr/local/www/services_dhcpv6.php on line 463


Is this anything critical or can be easily fixed?

Looking forward to your reply

BR br

Hi,

It will only display a warning, but we have fixed it for the next version (https://github.com/opnsense/core/commit/8ed4bd8869d5105895241a6060a673fe35667d71)

Regards,

Ad

Hallo,

thanks for the quick reply

however - in my installation, now it looks different, but still a warning:

Without the fix I get this:

Warning: Illegal string offset 'wan' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'wan' in /usr/local/www/services_dhcpv6.php on line 463 Warning: Illegal string offset 'lan' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'lan' in /usr/local/www/services_dhcpv6.php on line 463 Warning: Illegal string offset 'opt1' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'opt1' in /usr/local/www/services_dhcpv6.php on line 463 Warning: Illegal string offset 'opt2' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'opt2' in /usr/local/www/services_dhcpv6.php on line 463

With the fix in your link I get

Warning: Illegal string offset 'wan' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'lan' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'opt1' in /usr/local/www/services_dhcpv6.php on line 462 Warning: Illegal string offset 'opt2' in /usr/local/www/services_dhcpv6.php on line 462


Br br

This code really needs a cleanup, but this one should be a bit better now (https://github.com/opnsense/core/commit/4e8484a9f5b72a57a18169b344a9bbc84d0d5c21).