Project

General

Profile

Bug #8837

PHP error when creating alias URL Table (IPs)

Added by Steve Harrington 10 months ago. Updated 10 months ago.

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

100%

Estimated time:
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

Associated revisions

Revision 0a906fcc (diff)
Added by Stephen Jones 10 months ago

fixes #8837 part 2, initialize as array instead of string for PHP7

History

#1 Updated by Steve Beaver 10 months ago

  • Category set to Web Interface
  • Status changed from New to In Progress
  • Assignee set to Steve Beaver
  • Target version set to 2.4.4
  • Affected Version set to All

#2 Updated by Steve Beaver 10 months ago

  • Status changed from In Progress to Feedback

#3 Updated by Steve Beaver 10 months ago

  • % Done changed from 0 to 100

#4 Updated by Steve Harrington 10 months 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

#5 Updated by Anonymous 10 months ago

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

#6 Updated by Steve Harrington 10 months ago

This commit seems to have solved the issue.

#7 Updated by Steve Beaver 10 months ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF