Project

General

Profile

Actions

Bug #14004

closed

PHP errors when configuration lacks any certificates

Added by Steve Wheeler about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Certificates
Target version:
Start date:
Due date:
% Done:

100%

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

Description

When visiting the DNS resolver config page without any certs present:

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /usr/local/www/services_unbound.php:70 
Stack trace: 
#0 {main} 
   thrown in /usr/local/www/services_unbound.php on line 70 
PHP ERROR: Type: 1, File: /usr/local/www/services_unbound.php, Line: 70, Message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /usr/local/www/services_unbound.php:70

See: https://forum.netgate.com/topic/178037/fatal-error-uncaught-typeerror-at-dns-resolver-page

Actions

Also available in: Atom PDF