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

Fatal error: Uncaught TypeError: at DNS resolver page

Scheduled Pinned Locked Moved General pfSense Questions
5 Posts 4 Posters 1.2k 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.
  • F
    Flashman007
    last edited by Feb 18, 2023, 7:44 PM

    After updating to 23.01 and trying to access the DNS resolver page I'm getting this error:

    Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /usr/local/www/services_unbound.php:70 Stack trace: #0 {main} thrown in /usr/local/www/services_unbound.php on line 70 PHP ERROR: Type: 1, File: /usr/local/www/services_unbound.php, Line: 70, Message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /usr/local/www/services_unbound.php:70 Stack trace: #0 {main} thrown

    Any ideas?

    Thanks.

    N 1 Reply Last reply Feb 18, 2023, 8:16 PM Reply Quote 0
    • N
      NollipfSense @Flashman007
      last edited by Feb 18, 2023, 8:16 PM

      @flashman007 Sounds like a similar issue as here:
      https://forum.netgate.com/topic/178011/php-fatal-error-uncaught-typeerror-cannot-access-offset-of-type-string-on-string-in-usr-local-www-firewall_rules-php-805?loggedin=true

      pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
      pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by Feb 19, 2023, 2:12 AM

        It's not that though, that's an issue in a different page.

        That line is:

        if (count(config_get_path('cert'))) {
        

        So that implies there is no cert section in your config. Or maybe more than one?

        I expect there always to be at least one cert present there though because the web cert would be added. Unless maybe you're using http?

        Steve

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Feb 21, 2023, 4:14 PM

          That should probably have a , [] on there to ensure it always passes back an array in that call and never gets null. Easy enough to fix, but should get a Redmine issue first if there isn't one already.

          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!

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Feb 21, 2023, 4:55 PM

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

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