Project

General

Profile

Actions

Regression #13627

closed

Feature #13446: Upgrade PHP from 7.4 to 8.1

PHP: Easyrule from the firewall log

Added by Steve Wheeler over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Rules / NAT
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Force Exclusion
Affected Version:
2.7.0
Affected Architecture:
All

Description

Creating an easyrule using the button in the firewall log throws a php error:

Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/easyrule.inc:60 Stack trace: #0 /etc/inc/easyrule.inc(370): easyrule_find_rule_interface('lan') #1 /usr/local/www/easyrule.php(49): easyrule_parse_block('lan', '192.168.167.50', 'inet') #2 {main} thrown in /etc/inc/easyrule.inc on line 60 PHP ERROR: Type: 1, File: /etc/inc/easyrule.inc, Line: 60, Message: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/easyrule.inc:60 Stack trace: #0 /etc/inc/easyrule.inc(370): easyrule_find_rule_interface('lan') #1 /usr/local/www/easyrule.php(49): easyrule_parse_block('lan', '192.168.167.50', 'inet') #2 {main} thrown

Tested: 2.7.0.a.20221103.0600

Actions

Also available in: Atom PDF