Project

General

Profile

Actions

Bug #8967

closed

PHP error in DNS Forwarder when config has no dnsmasq settings

Added by Jim Pingle over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DNS Forwarder
Target version:
Start date:
09/27/2018
Due date:
% Done:

100%

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

Description

https://www.reddit.com/r/PFSENSE/comments/9je1ar/244_php_error/

Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/services_dnsmasq.php:96 Stack trace: #0 {main} thrown in /usr/local/www/services_dnsmasq.php on line 96 PHP ERROR: Type: 1, File: /usr/local/www/services_dnsmasq.php, Line: 96, Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/services_dnsmasq.php:96 Stack trace: #0 {main} thrown 

Code on that line assigns by reference, needs initialized first.

To me, I have a fix.

Actions #1

Updated by Jim Pingle over 5 years ago

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

Updated by Jim Pingle over 5 years ago

Actions #3

Updated by Steve Wheeler over 5 years ago

  • Status changed from Feedback to Resolved

Unable to replicate this in either 2.4.4 or in:

2.4.5-DEVELOPMENT (amd64)
built on Mon Oct 01 01:24:24 EDT 2018
FreeBSD 11.2-RELEASE-p4

Removed <dnsmasq> tags from the config. Rebooted to be sure. Opened services_dnsmasq.php. Enabled the forwarder. Added host overrides.

Actions #4

Updated by Anonymous over 5 years ago

  • Target version changed from 2.4.4-GS to 2.4.4-p1
Actions #5

Updated by Anonymous over 5 years ago

  • Target version changed from 2.4.4-p1 to 2.4.4-GS
Actions

Also available in: Atom PDF