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

PHP Crash error when moving IPsec P2 up to top of the list

webGUI
2
3
86
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.
  • I
    IT_Luke
    last edited by Apr 7, 2025, 2:20 PM

    Using the latest 2.7.2 build, when having multiple P2 stages in the IPSec configuration and when you try to move any of the latter ones to the top to be the first, there is a PHP crash:

    PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 3662, Message: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1250 and defined in /etc/inc/util.inc:3662
    Stack trace:
    #0 /etc/inc/config.lib.inc(1250): array_path_enabled(-1, 'notifications/s...', 'disable')
    #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
    #2 /etc/inc/notices.inc(662): notify_via_smtp('pfSense is rest...')
    #3 /etc/inc/notices.inc(151): notify_all_remote('pfSense is rest...')
    #4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'pfSense is rest...', 'pfSenseConfigur...', '')
    #5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
    #6 /usr/local/www/vpn_ipsec.php(264): write_config('Saved configura...')
    #7 {main}

    From the PHP error log:

    PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1250 and defined in /etc/inc/util.inc:3662
    Stack trace:
    #0 /etc/inc/config.lib.inc(1250): array_path_enabled(-1, 'notifications/s...', 'disable')
    #1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
    #2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
    #3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
    #4 /etc/inc/config.lib.inc(1154): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
    #5 [internal function]: pfSense_clear_globals()
    #6 {main}
    thrown in /etc/inc/util.inc on line 3662

    A page refresh resolves it but the P2 line is not moved to the top, it will move to any other position other than the top though.

    Not a major bug, but still, it's a bug(ger).

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Apr 8, 2025, 7:35 PM

      This was known and fixed quite some time ago:

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

      You can install the System Patches package and the fix is in the list of recommended patches.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      I 1 Reply Last reply Apr 8, 2025, 8:04 PM Reply Quote 1
      • I
        IT_Luke @jimp
        last edited by IT_Luke Apr 8, 2025, 8:10 PM Apr 8, 2025, 8:04 PM

        @jimp Thanks for the heads up - I missed that! Maybe you can shed some light on my IPSec "double subnet" BiNAT P2 issue posted here:

        https://forum.netgate.com/topic/197061/ipsec-with-multiple-subnets-and-binat-not-nating-a-specific-network-non-local

        I searched but couldn't find any detailed information on this specific issue - it works only on the "first" subnet you specify, not on any additional different than the first.

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