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

    Adding text to the captive portal breaks it!

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 4 Posters 2.2k 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.
    • P
      pfsenseuser
      last edited by

      We have a customer using pfsense and it’s captive portal.  However, any attempt to change the captive portal breaks it.  They authenticate but get bounced back to the captive portal page again.  It takes a restore of the system configuration to return the captive portal working again.

      I have tried rebuilding the installation, upgrading to the latest version, and neither have had any success.  I have even tried changing the portal page through the shell and the same problem occurs.

      What we are trying to do it add text to the captive portal page.  If we remove text, it is OK.  But if we try to add text, or even just an image representing the text, it fails again.  Any suggestions?

      PS.  There appears to be a clue to the problem but I don't know what to do with it.  After the change, no authentication attempts show up in log …

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

        Youre doing it wrong, RTFM on the captive portal configuration page, you will save yourself and your customer(s) a lot of time.

        1 Reply Last reply Reply Quote 0
        • P
          pfsenseuser
          last edited by

          First off, I did RTFM.  This is how I started the process.  I attempted to upload the very same portal page with one additional paragraph of text from the Captive portal configuration page.  When one writes "I have even tried …", it means that they have tried the normal, prescribed method without success ... hence the need to "try" other things.  Any other bright ideas?

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

            @pfsenseuser:

            First off, I did RTFM.  This is how I started the process.  I attempted to upload the very same portal page with one additional paragraph of text from the Captive portal configuration page.

            Please post the content of your "very same portal page with one additional paragraph" so I can show you why you havent RTFM.

            When one writes "I have even tried …", it means that they have tried the normal, prescribed method without success ... hence the need to "try" other things.  Any other bright ideas?

            When one writes the symptoms you described and additionally says "I have even tried changing the portal page through the shell and the same problem occurs.", clearly that person has NOT "tried the normal, prescribed method".

            1 Reply Last reply Reply Quote 0
            • P
              pfsenseuser
              last edited by

              If you are going to continue to insult me, I see no reason to show you anything.  Perhaps someone who is interested in helping would like to post?

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                @pfsenseuser:

                Perhaps someone who is interested in helping would like to post?

                I'm afraid any interest is shrinking rapidly, since you have produced zero useful information despite requests, and instead opted for unproductive rants and acting like crybaby.  ::)

                1 Reply Last reply Reply Quote 0
                • P
                  pfsenseuser
                  last edited by

                  Well, since you’ve asked so nicely … Here is the original php page, and the edited php page.  I didn’t edit it ... But it is possible that the edit breaks something pfsense needs.  I looked it over but didn't see anything.

                  thaibar-login-etda-Y13M01D28.txt
                  thaibar-login-etda-Y13M06D04.txt

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

                    @pfsenseuser:

                    If you are going to continue to insult me, I see no reason to show you anything.  Perhaps someone who is interested in helping would like to post?

                    I found a solution for your commercial problem, https://portal.pfsense.org/support-subscription.php

                    G'Luck.

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      You should not just "view source" of the portal page, edit it, and then upload it. In doing so, the page loses some important internal macros. You should edit the original modified source, or attempt to "fix" the tags that were lost. See the sample code for a default portal page to see what those are, things like

                      
                      <form method="post" action="$PORTAL_ACTION$">
                      
                      and
                      
                      and other such things that may have been used.</form>
                      
                      

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

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