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

PHP Errors at upgrade to 23.01

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 3 Posters 874 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.
  • B
    Beerman
    last edited by Feb 18, 2023, 12:11 PM

    Hi,

    I got these two PHP Errors ar upgrade to 23.01.

    
    12:58:36 PHP ERROR: Type: 1, File: /usr/local/pkg/pfblockerng/pfblockerng.inc, Line: 1468, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/pfblockerng/pfblockerng.inc:1468
    Stack trace:
    #0 /usr/local/pkg/pfblockerng/pfblockerng.inc(7253): pfb_build_if_list(true, false)
    #1 /usr/local/pkg/pfblockerng/pfblockerng.inc(10802): sync_package_pfblockerng()
    #2 /etc/inc/pkg-utils.inc(781) : eval()'d code(1): pfblockerng_php_pre_deinstall_command()
    #3 /etc/inc/pkg-utils.inc(781): eval()
    #4 /etc/inc/pkg-utils.inc(1093): eval_once('pfblockerng_php...')
    #5 /etc/rc.packages(80): delete_package_xml('pfBlockerNG-dev...', 'deinstall')
    #6 {main}
      thrown
    
    12:57:24 PHP ERROR: Type: 1, File: /usr/local/pkg/snort/snort.inc, Line: 4345, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/pkg/snort/snort.inc:4345
    Stack trace:
    #0 /usr/local/pkg/snort/snort.inc(505): snort_get_vpns_list()
    #1 /usr/local/pkg/snort/snort_generate_conf.php(32): snort_build_list(Array, 'HOME_NET')
    #2 /usr/local/pkg/snort/snort.inc(3834): include('/usr/local/pkg/...')
    #3 /usr/local/pkg/snort/snort.inc(1023): snort_generate_conf(Array)
    #4 /etc/inc/pkg-utils.inc(715) : eval()'d code(1): sync_snort_package_config()
    #5 /etc/inc/pkg-utils.inc(715): eval()
    #6 /etc/rc.start_packages(66): sync_package('snort')
    #7 {main}
      thrown
    
    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Feb 18, 2023, 3:02 PM

      @beerman said in PHP Errors at upgrade to 23.01:

      /usr/local/pkg/pfblockerng/pfblockerng.inc:1468

      Covered in: https://redmine.pfsense.org/issues/13950

      @beerman said in PHP Errors at upgrade to 23.01:

      /usr/local/pkg/snort/snort.inc:4345

      Should have been fixed by: https://redmine.pfsense.org/issues/13515
      Note added.

      Steve

      1 Reply Last reply Reply Quote 0
      • B
        bmeeks
        last edited by bmeeks Feb 18, 2023, 3:07 PM Feb 18, 2023, 3:03 PM

        The Snort error is likely caused by your box caching an older version of the snort.inc file and using that cached version when running the upgrade script. The cached version will not contain the fix for that PHP error you saw.

        If you had removed the Snort package prior to upgrading pfSense, then when you reinstalled the package it would have used the "new" snort.inc file with the PHP fix and not have thrown the error. This kind of situation is why the recommended approach to pfSense version upgrades is to remove all packages, upgrade pfSense, then manually reinstall your packages.

        But with all of the above said, the error is harmless as now the correct snort.inc file is on your system and the next time that particular function is called to build a Pass List it will run correctly.

        B 1 Reply Last reply Feb 18, 2023, 5:30 PM Reply Quote 2
        • B
          Beerman @bmeeks
          last edited by Feb 18, 2023, 5:30 PM

          @bmeeks

          OK, thx! :)

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received