OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: liorz on January 25, 2016, 05:58:09 pm

Title: Error on captive portal with voucher login
Post by: liorz on January 25, 2016, 05:58:09 pm
Hi guys
Just implemented the captive portal on our OPNsense firewall
we i try to login with user authentication , works fine
when trying to connect with vouhecher i get the following error :
 
Warning: fopen(/var/db/voucher_usr0_used_2.db): failed to open stream: No such file or directory in /usr/local/etc/inc/voucher.inc on line 434 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/etc/inc/voucher.inc:434) in /usr/local/etc/inc/config.lib.inc on line 167 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/local/etc/inc/voucher.inc:434) in /usr/local/etc/inc/config.lib.inc on line 167 Warning: Cannot modify header information - headers already sent by (output started at /usr/local/etc/inc/voucher.inc:434) in /usr/local/etc/inc/captiveportal.inc on line 1234

the session is starting and i'm able to work but still get this message
any ideas?

Thanks , Lior
Title: Re: Error on captive portal with voucher login
Post by: AdSchellevis on January 25, 2016, 08:35:16 pm
Hi Lior,

We've rewritten the captive portal feature for the 16.1 version, which will be available later this week.
If you like, you could try the development version and switch to stable at the end of the week, support for the old system will drop after 16.1.
(the current code is very old)

More information on how to use the development version can be found here: https://forum.opnsense.org/index.php?topic=917.0 (https://forum.opnsense.org/index.php?topic=917.0)

Regards,

Ad
Title: Re: Error on captive portal with voucher login
Post by: liorz on January 26, 2016, 09:38:12 am
I understand , I think we will wait for the production version
maybe you have an idea why we get this error? maybe its fixable?

thanks , Lior.
Title: Re: Error on captive portal with voucher login
Post by: franco on February 02, 2016, 07:21:10 am
Not exactly sure why the database file is not there, if you need this setup redoing the captive portal zone will probably fix this? But as Ad said, 15.7 will receive no more fixes an the new captive portal works differently so please try it out, the stable release 16.1.1 is coming out today.