Project

General

Profile

Actions

Bug #14978

closed

PHP error on ``services_dhcpv6.php`` if the configuration contains an empty ``dhcpv6`` section

Added by Marcos M about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP (IPv6)
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.09.1
Release Notes:
Default
Affected Version:
Affected Architecture:
All

Description

On a fresh install:
  1. Configure a static IPv6 address on LAN, click Save
  2. Go to Services > DHCPv6 Server, click Enable then click Save
[13-Nov-2023 20:10:11 Etc/UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dhcpv6.php:271
Stack trace:
#0 {main}
  thrown in /usr/local/www/services_dhcpv6.php on line 271

Files

clipboard-202311252211-cljpm.png (9.25 KB) clipboard-202311252211-cljpm.png Jordan G, 11/26/2023 04:11 AM
Actions #1

Updated by Marcos M about 1 year ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #2

Updated by Jordan G about 1 year ago

I set a static v6 address on one of my LANs and when trying to enable ISC or KEA v6 DHCP server I receive the same message, with or without the above patch applied. Don't seem to be able to specify an acceptable range.

Actions #3

Updated by Jim Pingle about 1 year ago

  • Target version changed from 2.8.0 to 2.7.2
  • Plus Target Version changed from 24.03 to 23.09.1
Actions #4

Updated by Jim Pingle about 1 year ago

  • Status changed from Feedback to Resolved

That is normal if you don't fix the range after switching from tracked to static. The default values for tracked range suffixes there won't work for a static setup.

I tried from a stock config and also from one modified to have an empty <dhcpdv6> tag and both were successful and did not produce any PHP errors.

Actions

Also available in: Atom PDF