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

    Pfblocker dashboard widget Fatal error: Unsupported operand types

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 4 Posters 1.3k 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.
    • 0
      0ren
      last edited by

      Hello,

      In the dashboard we have an error after click "Save Settings" ,  once I add the Pfblocker widget, I see the widget with all data, but after click to the bottom "save Settings" the widget was transform and show and error :
      _Fatal error: Unsupported operand types in /usr/local/www/widgets/widgets/pfBlocker.widget.php on line 57_f

      This error only was show if  I have IPsec widget added, seems a imcompatibility.

      I have another PFsense same hardware and pfsense version, without any problem, but obviously different configuration.

      Any one with same problem?.

      Regards

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        It seems to be using the first word in the text after USER RULE: as a variable name. That is the first word in the description of the rule.
        Do you have some rules that have descriptions that start with a number, or with some special Unicode script in the description (maybe special European characters even)?

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

          Hi Oren,

          You can run this command to get a list of all your USER RULES :

          /sbin/pfctl -s labels | grep "USER"

          "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
          • 0
            0ren
            last edited by

            Thanks phil.davis, BBcan177

            I check my User Rules, some of then doesn't have description, but after fixed the problem persist.

            The PFblocker widget only crash with IPSEC widget can't be a problem related with the User Rules.

            Regards,
            Oren

            1 Reply Last reply Reply Quote 0
            • N
              ndj
              last edited by

              I also had this issue and tracked it down to a user rule that had a description beginning with the string "carp" - it appears that $matches['carp'] is used elsewhere before pfblockNG and contains an array of data related to carp interfaces

              Two possible fixes:-

              • find the rule description that begins with the term "carp" and change it
              • adjust the code to use a variable name other than $matches

              Enjoy,
              N

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