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

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/pkg_edit.php:675 Stack trace: #0

    Scheduled Pinned Locked Moved pfBlockerNG
    6 Posts 3 Posters 536 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.
    • P
      pfsense4me1
      last edited by pfsense4me1

      pfBlockerNG v3.2.0_8

      Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/pkg_edit.php:675 Stack trace: #0 {main} thrown in /usr/local/www/pkg_edit.php on line 675 PHP ERROR: Type: 1, File: /usr/local/www/pkg_edit.php, Line: 675, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/pkg_edit.php:675 Stack trace: #0 {main} thrown

      This message appears when you click in the menu "Firewall, pfBlockerNG". But after clicking on "pfBlockerNG" I can make all settings.
      to Link - https://*****/pfblockerng/pfblockerng_general.php

      ....................................................................................................................................................

      This ist the Text in Line 675 pf pkg_edit.php :

      // Now loop through all of the fields defined in the XML
      if (!is_array($pkg['fields']['field'])) {
      $pkg['fields']['field'] = array();
      }
      foreach ($pkg['fields']['field'] as $pkga) {

      BBcan177B 1 Reply Last reply Reply Quote 0
      • BBcan177B
        BBcan177 Moderator @pfsense4me1
        last edited by

        @pfsense4me1 try to re-install the package.

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        P 1 Reply Last reply Reply Quote 0
        • P
          pfsense4me1 @BBcan177
          last edited by

          @BBcan177

          Hello,

          Thank you for the faster response.
          Unfortunately, even after reinstalling there is no change, same error.

          Upgrading pfSense-pkg-pfBlockerNG...
          Updating pfSense-core repository catalogue...
          Fetching meta.conf:
          pfSense-core repository is up to date.
          Updating pfSense repository catalogue...
          pfSense repository is up to date.
          All repositories are up to date.
          The following 5 package(s) will be affected (of 0 checked):

          Installed packages to be UPGRADED:
          gettext-runtime: 0.21.1 -> 0.22_1 [pfSense]
          php82: 8.2.4 -> 8.2.11 [pfSense]
          python311: 3.11.2_2 -> 3.11.4 [pfSense]
          sqlite3: 3.41.0_1,1 -> 3.42.0,1 [pfSense]

          Installed packages to be REINSTALLED:
          pfSense-pkg-pfBlockerNG-3.2.0_8 [pfSense]

          Number of packages to be upgraded: 4
          Number of packages to be reinstalled: 1

          The process will require 4 MiB more space.
          40 MiB to be downloaded.
          [1/4] Fetching python311-3.11.4.pkg: .......... done
          [2/4] Fetching php82-8.2.11.pkg: .......... done
          [3/4] Fetching gettext-runtime-0.22_1.pkg: .......... done
          [4/4] Fetching sqlite3-3.42.0,1.pkg: ....... done
          Checking integrity... done (0 conflicting)
          [1/5] Upgrading gettext-runtime from 0.21.1 to 0.22_1...
          [1/5] Extracting gettext-runtime-0.22_1: .......... done
          [2/5] Upgrading python311 from 3.11.2_2 to 3.11.4...
          [2/5] Extracting python311-3.11.4: .......... done
          [3/5] Upgrading php82 from 8.2.4 to 8.2.11...
          [3/5] Extracting php82-8.2.11: .......... done
          [4/5] Upgrading sqlite3 from 3.41.0_1,1 to 3.42.0,1...
          [4/5] Extracting sqlite3-3.42.0,1: .......... done
          [5/5] Reinstalling pfSense-pkg-pfBlockerNG-3.2.0_8...
          [5/5] Extracting pfSense-pkg-pfBlockerNG-3.2.0_8: .......... done
          ld-elf.so.1: Shared object "libcrypto.so.30" not found, required by "php"
          pkg-static: DEINSTALL script failed
          ld-elf.so.1: Shared object "libcrypto.so.30" not found, required by "php"
          pkg-static: POST-INSTALL script failed

          Cleaning up cache... done.
          Erfolgreich

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @pfsense4me1
            last edited by

            @pfsense4me1

            What is your pfSense version ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            P 1 Reply Last reply Reply Quote 0
            • P
              pfsense4me1 @Gertjan
              last edited by

              Netgate 7100 with
              Version 23.05.1-RELEASE (amd64)
              kompiliert am: Wed Jun 28 03:57:27 UTC 2023
              FreeBSD 14.0-CURRENT

              BBcan177B 1 Reply Last reply Reply Quote 0
              • BBcan177B
                BBcan177 Moderator @pfsense4me1
                last edited by

                @pfsense4me1 there is something wrong with the base pfSense install. Take a backup config, install. Do a fresh install and restore the backup config file.

                "Experience is something you don't get until just after you need it."

                Website: http://pfBlockerNG.com
                Twitter: @BBcan177  #pfBlockerNG
                Reddit: https://www.reddit.com/r/pfBlockerNG/new/

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