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

    Unsupported operand types: int + string pfsense-utils.inc:1585 after upgrading 23.01

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 509 Views 2 Watching
    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.
    • E Offline
      Elv
      last edited by

      After upgrading from 22.05 to 23.01 the dashboard was unable to correct filling the interface-widget. opt3/ppp0 interface (cuaU0.2) using mobile/sim failed (php8 incompatibility) see below.

      Fixing: /etc/inc/pfsense-utils.inc

      1585c1585

      •   	$sec += substr($upt, 1 + strpos($upt, " "));
        
      •   	$sec += intval(substr($upt, 1 + strpos($upt, " ")));
        

      [15-Apr-2023 13:10:07 Europe/Berlin] PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in /etc/inc/pfsense-utils.inc:1585
      Stack trace:
      #0 /etc/inc/pfsense-utils.inc(1774): get_ppp_uptime('ppp0')
      #1 /usr/local/www/widgets/widgets/interfaces.widget.php(101): get_interface_info('opt3')
      #2 /usr/local/www/index.php(430): include('/usr/local/www/...')
      #3 {main}
      thrown in /etc/inc/pfsense-utils.inc on line 1585

      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        That is fixed in 23.05: https://redmine.pfsense.org/issues/14117

        The patch for it is also included in the recommend patches list in the System Patches package.

        Steve

        1 Reply Last reply Reply Quote 0
        • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.