OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: bringha on December 16, 2015, 10:12:42 pm

Title: [SOLVED] Warning message on dhcpv6 server page in service menu
Post by: bringha on December 16, 2015, 10:12:42 pm
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:
Code: [Select]
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
Title: Re: Warning message on dhcpv6 server page in service menu
Post by: AdSchellevis on December 17, 2015, 08:41:17 am
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
Title: Re: Warning message on dhcpv6 server page in service menu
Post by: bringha on December 17, 2015, 10:48:16 pm
Hallo,

thanks for the quick reply

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

Without the fix I get this:
Code: [Select]
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
Code: [Select]
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
Title: Re: Warning message on dhcpv6 server page in service menu
Post by: AdSchellevis on December 18, 2015, 08:31:58 am
This code really needs a cleanup, but this one should be a bit better now (https://github.com/opnsense/core/commit/4e8484a9f5b72a57a18169b344a9bbc84d0d5c21).
Title: Re: Warning message on dhcpv6 server page in service menu
Post by: franco on December 22, 2015, 08:28:59 am
Both fixes will make it to 15.7.23.