[FIXED] PHP ERROR when enabling Squid Authentication Method to CAPTIVE Portal on version 2.7.0
-
Good Day Everyone!
After upgrading my pfSense 2.6.0 to 2.70 I encountered this PHP ERROR: Type: 1, File: /usr/local/bin/check_ip.php, Line: 28, Message: Uncaught Error: Undefined constant "STDIN" in /usr/local/bin/check_ip.php:28.
This php error occurs when setting the Squid Authentication Method to Captive Portal. I edited the /usr/local/bin/check_ip.php file to fix this problem by modifying the proper declaration of STDIN and STDOUT to these lines below:
if (!defined('STDIN')) {
define("STDIN", fopen('php://stdin', 'r'));
}
if (!defined('STDOUT')) {
define("STDOUT", fopen('php://stdout', 'w'));
}then reapplied all my Squid and Captive Portal settings and worked back to normal.
-
thank you so much!
-
Thank you very much. Works fine.
-
This post is deleted!