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

    One small issue after upgrade 2.03 => 2.1

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    5 Posts 2 Posters 1.9k 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.
    • M
      matthijs
      last edited by

      I upgraded from 2.03 to 2.1
      Everything is fine and everything seems to work fine
      I maybe found one issue do.

      When I click Menu =>"Diagnostics"=> "Authentication"
      I get the following result

      Fatal error: Cannot redeclare getNasIP() (previously declared in /usr/local/captiveportal/radius_authentication.inc:53) in /etc/inc/captiveportal.inc on line 1576

      I have no captive portal configured, and also no Radius package installed or configured.

      Any clues ?

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Same error reported here: http://forum.pfsense.org/index.php/topic,66764.0.html
        and possible code fix here: https://github.com/pfsense/pfsense/pull/804

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • M
          matthijs
          last edited by

          Thanks for the relply
          How can I fix it manualy myself, or is this going to be fixed in a next release ?

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            It is such a small fix that it can be done by hand reasonably.
            Look at this code: https://github.com/pfsense/pfsense/pull/804/files
            Diagnostics->Edit File
            /etc/inc/captiveportal.inc
            ctrl-A ctrl-C then paste the code into your favourite text editor (so you have an easy copy of the original)
            Add the 2 lines as shown, and save.
            Only do this if you are happy understanding a  bit of PHP syntax and can thus put the lines in the correct place and be confident the syntax is correct.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • M
              matthijs
              last edited by

              Thanks alot, this fixed the issue

              For anyone else trying to manualy fix this issue and your favourite text editor is Notepad, make sure it is not using "Word Wrap" otherwise you wil have issues when copying the code back into Pfsense :)

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