Blank page after submit?



  • I'm having a strange issue where my captive portal works flawlessly….
    Until I upload custom pages.

    The pages load fine, but after I hit the login button I'm just landed with a blank page.
    I've tried writing my own and using templates I've found, but I keep having the same problem.

    Can someone tell me where I'm going wrong?

    Thanks in advance.



  • @jabadameh:

    …..
    Can someone tell me where I'm going wrong?

    Based on the info you gave us :
    Stop doing this:
    @jabadameh:

    Until I upload custom pages.



  • I would like to just leave it, but the default page is a bit bland.

    It's the first time I've had a problem using captive portal in pfSense, I don't know if it has anything to do with the 2.3 beta or not.



  • This is (one of many) templates I have tried to use if anyone wants to check. It's worked fine for me in the past.

    https://github.com/calvinbui/pfsense-captive-portal



  • After the latest beta update all is well, works just as it should.


  • LAYER 8 Netgate

    I see no changes being made to CP but if it's working for you great.



  • I found it had something to do with redirurl.
    There were some cosmetic changes in GUI for the CP service, so I assumed they had made some other changes too. Maybe there was an error in the GUI field for post-auth redirect url or something?
    –edit--
    Before the update I had manually placed the redirurl in the HTML code and it worked, after the update this wasn't necessary
    --/edit--

    Either way it works so I'm happy. First and with any luck the last time I've had any problems with captive portal



  • I have just upgraded from 2.2.3 to 2.3 beta. After upgrading all users got a blank page after login.

    When looking at the html code of the standard portal I can se there is a "new" variable in the form. The variable is not part of the example form, but is in the html generated by the standard portal. When I add the variable $PORTAL_ZONE$ to the custom login portal all users are authenticated and redirected as before the upgrade to 2.3 beta.

    Just posting this as it fixed my problem.



  • Going from the very old 2.2.3 to a beta version ….  :o
    What about the current 2.2.6 ? ( $PORTAL_ZONE$ already exists in the current version https://github.com/pfsense/pfsense/blob/RELENG_2_2/etc/inc/captiveportal.inc#L60 )


Log in to reply