Bug #2437
closedPHP missing bcmath (that was solved for pfSense 2.0 two years ago, re-discovered in the latest pfSense 2.1)
0%
Description
1.
When "Radius Accounting" is enabled and trying to disconnect a connected client in the captive portal gui - the following error appears: Fatal error: Call to undefined function bcmod() in /usr/local/captiveportal/radius_accounting.inc on line 337
As a result the session gets removed from the pfSense, but the client doesn't get de-authenticated and can still browse without hitting the captive portal.
It seems that due to the fact that bcmath php5 module is not on the system and bcmod() isn't being found.
2.
I found that this issue was already reported and was fixed two years ago for pfSense 2.0: bug #483
Updated by Seth Mos over 12 years ago
- Status changed from New to Feedback
Change just checked in, let me know how it goes.
Updated by Chris Buechler over 12 years ago
- Status changed from Feedback to Resolved
Updated by Yuri Keren over 12 years ago
The fix provided by Seth Mos fixes the issue with bcmod() when running it from php command line, but it still doesn't work when it runs from the web server (invoked by captiveportal_disconnect() function when radius accounting is enabled).
In order to fix the above - "bcmath" needs also to be added as an extension in the rc.php_ini_setup file, like this:
grep -n bcmath /etc/rc.php_ini_setup
127:# bcmath
128:PHPMODULES="$PHPMODULES bcmath"
Thanks.