Bug #8837
closedPHP error when creating alias URL Table (IPs)
100%
Description
I was trying to follow the procedure described here to create a Netflix ipv6 alias.
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 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
Updated by Anonymous over 6 years ago
- Status changed from In Progress to Feedback
Updated by Anonymous over 6 years ago
- % Done changed from 0 to 100
Applied in changeset d6d46650d207cf0d37a2551a8a73a83aaf804672.
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
Updated by Anonymous over 6 years ago
The `[] operator not supported` error should be fixed in the next snap.
0a906fcc2e120e7dd290ce7faac1ba14a24f731b
Updated by Steve Harrington over 6 years ago
This commit seems to have solved the issue.