Call to undefined function pfsense_get_pf_rules()



  • 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.



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



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



  • 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 ;)



  • @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.


  • Administrator

    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



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