Captive portal crashes after upgrading to version 22.05
-
Hello Friends.
After registering PfSense and upgrading to version 22.05 a crash report is beein showed everytime I log in.
"PHP Fatal error: Uncaught Error: Call to undefined function pfSense_pf_cp_flush() in /etc/inc/captiveportal.inc:1030"
Did someone faced the same troble? Any hint about how to fix it?
Bellow the entire report:
Crash report begins. Anonymous machine information:amd64
12.3-STABLE
FreeBSD 12.3-STABLE plus-RELENG_22_05-n202700-3ddaea61055 pfSenseCrash report details:
PHP Errors:
[04-Aug-2022 17:29:58 America/Recife] PHP Fatal error: Uncaught Error: Call to undefined function pfSense_pf_cp_flush() in /etc/inc/captiveportal.inc:1030
Stack trace:
#0 /etc/inc/captiveportal.inc(526): captiveportal_passthrumac_delete_entry(Array)
#1 /etc/inc/captiveportal.inc(414): captiveportal_delete_rules(Array)
#2 /etc/inc/captiveportal.inc(216): captiveportal_configure_zone(Array)
#3 /etc/rc.bootup(392): captiveportal_configure()
#4 {main}
thrown in /etc/inc/captiveportal.inc on line 1030
[04-Aug-2022 18:23:16 America/Recife] PHP Fatal error: Uncaught Error: Call to undefined function pfSense_pf_cp_get_eth_pipes() in /etc/inc/captiveportal.inc:1660
Stack trace:
#0 /etc/inc/captiveportal.inc(1021): captiveportal_get_dn_passthru_pipes('00:15:17:1e:ee:...')
#1 /etc/inc/captiveportal.inc(526): captiveportal_passthrumac_delete_entry(Array)
#2 /etc/inc/captiveportal.inc(503): captiveportal_delete_rules(Array, NULL)
#3 /etc/inc/captiveportal.inc(235): captiveportal_init_rules(NULL)
#4 /usr/local/www/services_captiveportal.php(505): captiveportal_configure_zone(Array, NULL)
#5 {main}
thrown in /etc/inc/captiveportal.inc on line 1660
[04-Aug-2022 18:23:31 America/Recife] PHP Fatal error: Uncaught Error: Call to undefined function pfSense_pf_cp_flush() in /etc/inc/captiveportal.inc:1030
Stack trace:
#0 /etc/inc/captiveportal.inc(526): captiveportal_passthrumac_delete_entry(Array)
#1 /etc/inc/captiveportal.inc(414): captiveportal_delete_rules(Array)
#2 /usr/local/www/services_captiveportal.php(505): captiveportal_configure_zone(Array, NULL)
#3 {main}
thrown in /etc/inc/captiveportal.inc on line 1030No FreeBSD crash data found.
-
@hugoeyng said in Captive portal crashes after upgrading to version 22.05:
pfSense_pf_cp_flush()
That function, like many other pfSense_xxxxx functions, is code written in C, and integrated into PHP. Most of them handle the 'pf' firewall directly.
I advise you to do a clean re install.
-
@gertjan I ran pfsense-upgrade -y and it is working now.
Thank you.