Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense dev version crash on easy rule

    Scheduled Pinned Locked Moved CE 2.7.0 Development Snapshots (Retired)
    2 Posts 2 Posters 371 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ala76nl
      last edited by

      PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /etc/inc/easyrule.inc

      Happens when you create an easy rule from firewall log.

      Current version 2.7.0.a.20221024.0600

      1 Reply Last reply Reply Quote 0
      • jimpJ jimp moved this topic from General pfSense Questions on
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by stephenw10

        Confirmed, php bug:

        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 in 2.7.0.a.20221103.0600

        https://redmine.pfsense.org/issues/13627

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.