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

    Call to undefined function pfsense_get_pf_rules()

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    7 Posts 4 Posters 948 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
      phil.davis
      last edited by

      I just gitsynced and firewall_rules.php gives:

      Fatal error: Call to undefined function pfsense_get_pf_rules() in /usr/local/www/firewall_rules.php on line 349
      

      I am guessing that pfsense_get_pf_rules() is provided in a binary interface and so I need to do a proper update - I will try now and see if the latest build has it all yet.

      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
      • A
        athurdent
        last edited by

        It has, ran into that problem, too. Updating fixes the error.

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

          Yep, a proper update work for me also - so this topic is just a heads-up to others that usually just GitSync.

          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
          • A
            athurdent
            last edited by

            Hmm, how do you GitSync? IIRC you suggested Console option 13 in another thread, but that seems to do excactly the same as using the GUI, at least on my systems.
            BTW, many thanks for your countless contributions to pfSense ;)

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

              @athurdent:

              Hmm, how do you GitSync? IIRC you suggested Console option 13 in another thread, but that seems to do excactly the same as using the GUI, at least on my systems.
              BTW, many thanks for your countless contributions to pfSense ;)

              Console menu 12) pfSense Developer Shell, then enter:

              gitsync playback master
              

              That gets the latest PHP/script code onto the system. The first time you use it, it will setup git stuff on your system.

              Console menu 13 does indeed do the same thing as in the GUI - does a "full update", which includes recompiled binaries.

              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
              • rbgargaR
                rbgarga Developer Netgate Administrator
                last edited by

                functions with prefix pfSense_ are written in C as part of php56-pfSense-module. This function was added in version 0.10, so if module is older you will get the error

                Renato Botelho

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

                  Never mind the crash report I just submitted before realizing that new binary was needed.
                  Resolved with update.

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