• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 476 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.
  • E
    Elv
    last edited by Apr 16, 2023, 7:53 AM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Apr 16, 2023, 10:06 PM

      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
      • J jimp moved this topic from Problems Installing or Upgrading pfSense Software on Apr 17, 2023, 12:24 PM
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received