Unsupported operand types: int + string pfsense-utils.inc:1585 after upgrading 23.01
-
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 -
-
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
-
J jimp moved this topic from Problems Installing or Upgrading pfSense Software on