Project

General

Profile

Actions

Bug #8837

closed

PHP error when creating alias URL Table (IPs)

Added by Steve Harrington over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Start date:
08/26/2018
Due date:
% Done:

100%

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

Description

I was trying to follow the procedure described here to create a Netflix ipv6 alias.

https://forum.netgate.com/topic/101361/pfsense-plus-hurricane-electric-breaks-netflix-ipv6-proxy-error

I encountered the following error creating the alias.

PHP Errors:
[26-Aug-2018 12:09:01 EST5EDT] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/firewall_aliases.php on line 242
[26-Aug-2018 12:09:01 EST5EDT] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/firewall_aliases.php on line 242
[26-Aug-2018 12:09:49 EST5EDT] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /usr/local/www/firewall_aliases_edit.php:228
Stack trace:
#0 {main}
thrown in /usr/local/www/firewall_aliases_edit.php on line 228

Actions #1

Updated by Anonymous over 6 years ago

  • Category set to Web Interface
  • Status changed from New to In Progress
  • Assignee set to Anonymous
  • Target version set to 2.4.4
  • Affected Version set to All
Actions #2

Updated by Anonymous over 6 years ago

  • Status changed from In Progress to Feedback
Actions #3

Updated by Anonymous over 6 years ago

  • % Done changed from 0 to 100
Actions #4

Updated by Steve Harrington over 6 years ago

I applied the changes, and I'm still receiving the following PHP error. It looks like the fix got rid of the count() warnings.

PHP ERROR: Type: 1, File: /usr/local/www/firewall_aliases_edit.php, Line: 228, Message: Uncaught Error: [] operator not supported for strings in /usr/local/www/firewall_aliases_edit.php:228

Actions #5

Updated by Anonymous over 6 years ago

The `[] operator not supported` error should be fixed in the next snap.
0a906fcc2e120e7dd290ce7faac1ba14a24f731b

Actions #6

Updated by Steve Harrington over 6 years ago

This commit seems to have solved the issue.

Actions #7

Updated by Anonymous over 6 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF