Unknown parameter in Captive Portal
-
This error was first noticed in 2.3. What is the proper fix for this? I'm on 2.3.1
Apr 19 17:50:18 php-fpm 49110 /index.php: Submission to captiveportal with unknown parameter zone: WiFi Apr 19 17:50:12 logportalauth 49110
-
I can only think of 2 possibilities :
- Is this "Wifi" parameter hard coded into your "login html page" ?
- Users (visitors) can make their own URL like http://your-portal.tld//index.php&cpzone=Hello&tes=again&another=whatisthis
In your case, the parameter "cpzone" is to to "Wifi" (The navigator of the visitor is using an URL with ….&cpzone=Wifi.......
and
The captive portal zone named "Wifi" does not exists in pfSense - Captive Portal's settings.Thus, it is flagged as an error - and not a 'pfSense (any version)' bug or issue.
-
you might be missing this in your portal page
-
you might be missing this in your portal page
I believe this is the case. It's not strictly required normally, but I think there is an issue with mixed case zone names and the automatic redirect for the lacking PORTAL_ZONE.
-
Yea there is an 'issue' with it on 2.3. Ive had to add that line to one of my CPs
Ive come across some posts that marked that as a possible fix. -
I just recompiled the form as listed in the captive portal configuration screen. I don't know if that fixed it yet. Will keep an eye on it.
-
Looks like a Bug. The zone needs to be all lower case.
Insert in your cutom login site:
and not:
g.
thomasThis error was first noticed in 2.3. What is the proper fix for this? I'm on 2.3.1
Apr 19 17:50:18 php-fpm 49110 /index.php: Submission to captiveportal with unknown parameter zone: WiFi Apr 19 17:50:12 logportalauth 49110
-
I've pushed a fix