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

      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.

      NollipfSenseN 1 Reply Last reply Reply Quote 0
      • NollipfSenseN
        NollipfSense @Flashman007
        last edited by

        @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
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          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
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            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
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

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

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