Project

General

Profile

Actions

Bug #4693

closed

php warning when applying changes after change Resolver service|Access List

Added by Alvaro Sedano almost 9 years ago. Updated almost 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DNS Resolver
Target version:
-
Start date:
05/09/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

php warning when applying changes after change Resolver service|Access List

The php warning is:

"Warning: in_array() expects parameter 2 to be array, null given in /etc/inc/unbound.inc on line 239"

/etc/inc/unbound.inc line 239 shows as

if ($sys_dnsserver && (!in_array($sys_dnsserver, $ns))) {

Solution:

Change this line to

if ($sys_dnsserver && (!in_array($ns, $sys_dnsservers))) {
Actions #1

Updated by Alvaro Sedano almost 9 years ago

Note the difference betwwen $sysdnsserver and $sys_dnsserver*s*

Actions #2

Updated by Kill Bill almost 9 years ago

This was already reported at least 3 times and fixed almost 1 month ago...

https://redmine.pfsense.org/projects/pfsense/repository/revisions/98615a3156d86aed1a560f109087d7e1ad4bf990

Actions #3

Updated by Chris Buechler almost 9 years ago

  • Status changed from New to Duplicate
  • Affected Version deleted (2.2.2)
Actions

Also available in: Atom PDF