Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Blank page after submit?

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 4 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jabadameh
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @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.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • J
          jabadameh
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • J
            jabadameh
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • J
              jabadameh
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

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

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • J
                  jabadameh
                  last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • S
                    stboe
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan
                      last edited by

                      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 )

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.