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

    Thermal sensors broke

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    7 Posts 5 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.
    • Q
      q54e3w
      last edited by

      From last nights update resolving some menu issues, this appears new.

      2.3-ALPHA (amd64) 
      built on Thu Dec 17 02:00:21 CST 2015 
      FreeBSD 10.2-STABLE 
      
      Fatal error: Cannot redeclare saveThresholdSettings() (previously declared in /usr/local/www/widgets/widgets/thermal_sensors.widget.php:96) in /usr/local/www/widgets/widgets/thermal_sensors.widget.php on line 96 Call Stack: 0.0002 226952 1\. {main}() /usr/local/www/index.php:0 PHP ERROR: Type: 1, File: /usr/local/www/widgets/widgets/thermal_sensors.widget.php, Line: 96, Message: Cannot redeclare saveThresholdSettings() (previously declared in /usr/local/www/widgets/widgets/thermal_sensors.widget.php:96)
      
      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        It sounds like you still have the index.php version that uses $i as a variable name.
        Do you also have Dyn DNS Status widget enabled on the dashboard? That causes a problem because it also uses $i.
        I suggest gitsync to the latest code. Otherwise get the latest index.php from https://github.com/pfsense/pfsense/blob/master/src/usr/local/www/index.php

        The problem is caused because each widget PHP code gets included twice, so any function in a widget will give this "cannot redeclare" fatal error.

        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
        • Q
          q54e3w
          last edited by

          yes I do, thanks Phil for the feedback.

          1 Reply Last reply Reply Quote 0
          • S
            Steve_B Netgate
            last edited by

            New snapshot is available now with correction for this.

            Als ik kan

            1 Reply Last reply Reply Quote 0
            • Q
              q54e3w
              last edited by

              great timing, with my skillz I would likely have broken Git trying to pull down the commit  :o

              1 Reply Last reply Reply Quote 0
              • jdillardJ
                jdillard
                last edited by

                you don't break git, git breaks you ;)

                if you go to the developer shell (option 12) and run "playback gitsync master" it will sync with that latest code in github. You'll have to install git first (it prompts you), but it is fairly straightforward. Feel free to play around with it in a vm and workout your git skillz.

                1 Reply Last reply Reply Quote 0
                • J
                  jwt Netgate
                  last edited by

                  Note that it doesn't install new compiled code, so you'll probably want to update as well

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