PHP errors during upgrade to 26.03 RC
-
Upgraded a 2100 from 25.11.1 seemingly just fine, but it showed this entire series of errors for many pear modules, including "XML Extension not found":
[133/160] Extracting php85-pear-Auth_RADIUS-1.1.0_5: ....... done Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Trying to access array offset on null in Role.php on line 250 Warning: Trying to access array offset on null in Role.php on line 251 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "honorsbaseinstall" in Role.php on line 173 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "installable" in Role.php on line 139 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "phpfile" in Role.php on line 204 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 Warning: Undefined array key "config_vars" in Role.php on line 46 XML Extension not found [134/160] Installing php85-pear-Cache_Lite-1.8.3,1... [134/160] Extracting php85-pear-Cache_Lite-1.8.3,1: .......... done Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 Warning: foreach() argument must be of type array|object, null given in Command.php on line 249 (...)Just a bit alarming to see hundreds of warning lines go by during an upgrade.
-
As already shown / mentioned here : Call for Testing: pfSense Plus 26.03 RC Now Available! but
for not polluting that forum thread, and you've beaten me for posting about it elsewhere.Me thinking out loud about it :
It could be that the newly download php85-pear- stuff gets "eval()"-ed but as the new PHP files are version "8.5" and the one evalling the new script files is the the soon to be replaced actual "php 8.4" it can't understand the new syntax and starts to throw out warning messages.
So its a checking and egg problem ?There's probably a way around this by using a special PHP instance used by the 'installer' that has warnings turned of, but that can also hide things that are actual issues.
When I see "Role.php" and other filenames, this makes me think it's part of the new Nexus scripts, which I haven't activated up on my pfSense.
So imho, it's just visual pollution and looks somewhat scary for "the untrained eye".
The the shear number of log lines with the same messages that is a bit unusual. -
@Gertjan Thatโs what I thought also. If expected, a note in the release notes would at least let people know that beforehand.
-
Is that device using zfs?
-
@marcosm I got similar errors while upgrading though no issues in use after upgrade. SG-8200 using ZFS.
-
@marcosm said in PHP errors during upgrade to 26.03 RC:
Is that device using zfs?
I do.
Didn't even knew that a recent pfSense Plus could be used with something else as zfs. That's like excluding yourself from the most nifty functionality that exists for pfSense. -
@Gertjan said in PHP errors during upgrade to 26.03 RC:
@marcosm said in PHP errors during upgrade to 26.03 RC:
Is that device using zfs?
I do.
Didn't even knew that a recent pfSense Plus could be used with something else as zfs. That's like excluding yourself from the most nifty functionality that exists for pfSense.Some people use UFS on cloud/VMs where the underlying storage provides an additional layer of "insurance" that UFS on bare metal just can't provide.
ZFS is the sane default though, for good reasons
These errors are not "unexpected". During the upgrade there is a window of time where the PHP stack is inconsistent and these packages try to execute PEAR commands. PEAR packaged code is fundamentally broken and is on my list of things to cull at some point.
-
Privacy Policy · Cookie Policy