Template Roll Printer with options (for 2.2.6, 2.3, 2.3.4, 2.4.0, 2.4.4)
-
Feature request created:
https://redmine.pfsense.org/issues/11379 -
@danieleit Hi, I was using this customization with pfsense+ 22.01 and it works great! however upon updating to 22.05 when trying to print using the custom print icon I got this error
Fatal error: Cannot redeclare get_captive_portal_logo() (previously declared in /etc/inc/captiveportal.inc:46) in /etc/inc/captiveportal.inc on line 46 PHP ERROR: Type: 1, File: /etc/inc/captiveportal.inc, Line: 46, Message: Cannot redeclare get_captive_portal_logo() (previously declared in /etc/inc/captiveportal.inc:46)
-
Yes, I know, its an reeeeally old thread running since years, and usually I dont do necroposting...
But just to let you now that at least the 2.4.4 files are running in pfSense CE 2.6 as well as in pfSense+ 22.01 and 22.05.
Tested in a virtual pfSense and at a SG-3100 Appliance.
Only thing to modify to avoid the error in prevoius post (Cannot redeclare...) is to replace the line "require("captiveportal.inc");" with "require_once("captiveportal.inc");" in the .php file(s).
Hopefully it runs in future version too.
Regards
-
I've found the time to check the scripts in the new 2.6.0 version. I cannot edit the OP anymore (due to limitations from netgate).
Update (18/04/2023):
- 2.6.0 Version (credits to FSC830 for the require_once fix)