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

Traffic Graph PHP error

Scheduled Pinned Locked Moved General pfSense Questions
6 Posts 4 Posters 646 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
    jordanp123
    last edited by Apr 5, 2023, 1:30 PM

    When watching traffic on the traffic graph (using iftop), I receieve a PHP error after letting it run for several minutes. I wasn't sure if this is a known issue or just something specific to my installation but its happened a few times now. PHP_errors.log.zip

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 5, 2023, 7:38 PM

      Didn't see anything for that so I opened one: https://redmine.pfsense.org/issues/14236

      Steve

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Apr 7, 2023, 4:37 PM

        I haven't managed to reproduce this yet but I can see how it might happen and I worked up what I hope is a fix.

        You can install the System Patches package and then create an entry for 2eb25975691c95ea86c0df0a60c16bb9a70d4067 to apply the fix.

        If you can apply that and run with it for a while and confirm that (a) the table data is displayed correctly and (b) there are no PHP errors, that would be very helpful. Thanks!

        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!

        J 2 Replies Last reply Apr 7, 2023, 4:56 PM Reply Quote 2
        • J
          jordanp123 @jimp
          last edited by Apr 7, 2023, 4:56 PM

          @jimp
          Applied the patch just a minute ago, everything so far appears to be running well, I'll keep the window running for awhile to see if anything happens and I'll report back, all the data its reporting though appears to be what I would expect.

          1 Reply Last reply Reply Quote 2
          • J
            jordanp123 @jimp
            last edited by Apr 7, 2023, 7:06 PM

            @jimp
            Everything has worked perfect, data looks good and no crashes, even after leaving the window up for about 2 hours.

            M 1 Reply Last reply May 16, 2023, 1:33 AM Reply Quote 2
            • M
              mcury @jordanp123
              last edited by May 16, 2023, 1:33 AM

              I was able to reproduce it.
              I'll apply this patch.

              PHP errors

              PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 2208, Message: Uncaught TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /etc/inc/util.inc:2208
              Stack trace:
              #0 /etc/inc/util.inc(2208): round('', 2)
              #1 /usr/local/pfSense/include/www/bandwidth_by_ip.inc(172): format_number('', 2)
              #2 /usr/local/www/bandwidth_by_ip.php(36): printBandwidth('wan', 'local', 'in', '', 'iftop')
              #3 {main}
              

              dead on arrival, nowhere to be found.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received