Project

General

Profile

Actions

Bug #8837

closed
SH

PHP error when creating alias URL Table (IPs)

Bug #8837: PHP error when creating alias URL Table (IPs)

Added by Steve Harrington about 8 years ago. Updated about 8 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

Updated by Anonymous about 8 years ago Actions #1

  • 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

Updated by Anonymous about 8 years ago Actions #2

  • Status changed from In Progress to Feedback

Updated by Anonymous about 8 years ago Actions #3

  • % Done changed from 0 to 100

Applied in changeset commit:d6d46650d207cf0d37a2551a8a73a83aaf804672.

SH Updated by Steve Harrington about 8 years ago Actions #4

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

Updated by Anonymous about 8 years ago Actions #5

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

SH Updated by Steve Harrington about 8 years ago Actions #6

This commit seems to have solved the issue.

Updated by Anonymous about 8 years ago Actions #7

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom