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

    My occasional error

    Scheduled Pinned Locked Moved 2.3.1 Snapshots Testing and Feedback - ARCHIVED
    16 Posts 5 Posters 4.8k 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
      phil.davis
      last edited by

      This happens infrequently to a number of people, but we have not found the common factor yet.
      Examples:
      https://forum.pfsense.org/index.php?topic=105760.0
      https://forum.pfsense.org/index.php?topic=109922.0
      and threads pointed to in those…

      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
      • bmeeksB
        bmeeks
        last edited by

        @phil.davis:

        This happens infrequently to a number of people, but we have not found the common factor yet.
        Examples:
        https://forum.pfsense.org/index.php?topic=105760.0
        https://forum.pfsense.org/index.php?topic=109922.0
        and threads pointed to in those…

        Thanks Phil for the additional information.  It appears this is maybe something going on in the overall widget code or perhaps more specifically with one of the system functions rather than being a problem with any single widget individually.  Could also be something within PHP itself, I guess.

        Bill

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

          Its probably a php 'warning', can you check the contents of the /tmp/php_errors.log ? It should have the actual warning included. The 'partial' php error message is caused by a warning-filter https://redmine.pfsense.org/issues/6097

          1 Reply Last reply Reply Quote 0
          • G
            grandrivers
            last edited by

            /tmp/php_errors.log and /tmp/php_errors.txt are both empty

            pfsense plus 25.03 super micro A1SRM-2558F
            C2558 32gig ECC  60gig SSD

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

              You do still have that 'crashreport' on the dashboard screen? If that is deleted then i think the logs are cleared as well.

              1 Reply Last reply Reply Quote 0
              • G
                grandrivers
                last edited by

                oh ok my bad didnt think about it that way

                pfsense plus 25.03 super micro A1SRM-2558F
                C2558 32gig ECC  60gig SSD

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

                  @PiBa:

                  Its probably a php 'warning', can you check the contents of the /tmp/php_errors.log ? It should have the actual warning included. The 'partial' php error message is caused by a warning-filter https://redmine.pfsense.org/issues/6097

                  Ah! So that is the reason they are not shown.

                  Based on your input I think a recommended change would be (in beginning of the command):

                  /usr/bin/grep -vi warning /tmp/PHP_errors.log
                  

                  To:

                  /bin/cat /tmp/PHP_errors.log
                  

                  On /usr/local/www/index.php and /usr/local/www/crash_reporter.php

                  My views have absolutely no warranty express or implied. Always do your own research.

                  1 Reply Last reply Reply Quote 0
                  • G
                    grandrivers
                    last edited by

                    php_errors.log
                    [01-May-2016 03:15:01 Etc/UTC] PHP Warning:  Invalid argument supplied for foreach() in /etc/inc/util.inc on line 1410
                    [01-May-2016 03:15:01 Etc/UTC] PHP Stack trace:
                    [01-May-2016 03:15:01 Etc/UTC] PHP  1. {main}() /usr/local/www/ifstats.php:0
                    [01-May-2016 03:15:01 Etc/UTC] PHP  2. require_once() /usr/local/www/ifstats.php:63
                    [01-May-2016 03:15:01 Etc/UTC] PHP  3. get_configured_interface_with_descr() /usr/local/www/guiconfig.inc:254
                    [01-May-2016 10:15:00 Etc/UTC] PHP Warning:  Invalid argument supplied for foreach() in /etc/inc/util.inc on line 1410
                    [01-May-2016 10:15:00 Etc/UTC] PHP Stack trace:
                    [01-May-2016 10:15:00 Etc/UTC] PHP  1. {main}() /usr/local/www/widgets/widgets/installed_packages.widget.php:0
                    [01-May-2016 10:15:00 Etc/UTC] PHP  2. require_once() /usr/local/www/widgets/widgets/installed_packages.widget.php:63
                    [01-May-2016 10:15:00 Etc/UTC] PHP  3. get_configured_interface_with_descr() /usr/local/www/guiconfig.inc:254

                    pfsense plus 25.03 super micro A1SRM-2558F
                    C2558 32gig ECC  60gig SSD

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

                      That is weird. The code is a foreach over all the interfaces:

                      foreach ($config['interfaces'] as $if => $ifdetail) {

                      It could have an "if is_array()" to protect it - that will stop those warning messages - but actually $config['interfaces'] MUST always have at least 1 interface in it. So something is going wrong with the global $config

                      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
                      • J
                        JorgeOliveira
                        last edited by

                        @phil.davis:

                        That is weird. The code is a foreach over all the interfaces:

                        foreach ($config['interfaces'] as $if => $ifdetail) {

                        It could have an "if is_array()" to protect it - that will stop those warning messages - but actually $config['interfaces'] MUST always have at least 1 interface in it. So something is going wrong with the global $config

                        Exactly what I was thinking.

                        IMO, the only way for that to ever happen is config.cache to be corrupted for whatever reason, so I've submitted the following PR:
                        https://github.com/pfsense/pfsense/pull/2925

                        Additionally, with regards to truncation of crash report, I've submitted another PR:
                        https://github.com/pfsense/pfsense/pull/2922

                        My views have absolutely no warranty express or implied. Always do your own research.

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