Closed oliaros closed 7 months ago
PHP throws a error Level : 8192 Message : strlen(): Passing null to parameter #1 ($string) of type string is deprecated File : /var/www/htdocs/phpsysinfo/includes/os/class.Linux.inc.php Line : 389
PHP throws a error Level : 8192 Message : strlen(): Passing null to parameter #1 ($string) of type string is deprecated File : /var/www/htdocs/phpsysinfo/includes/os/class.Linux.inc.php Line : 389
program not found on the machine ./xml.php on line 52 ./includes/output/class.WebpageXML.inc.php on line 179 in function run() ./includes/xml/class.XML.inc.php on line 799 in function getXml() ./includes/xml/class.XML.inc.php on line 778 in function _buildXml() ./includes/os/class.OS.inc.php on line 280 in function getSys() ./includes/os/class.Linux.inc.php on line 1707 in function build() ./includes/os/class.Linux.inc.php on line 924 in function _nvme() ./includes/class.CommonFunctions.inc.php on line 229 in function executeProgram( "nvme", "list", NULL, true )
PHP throws a error Level : 8 Message : fgets(): Read of 8192 bytes failed with errno=22 Invalid argument File : /var/www/htdocs/phpsysinfo/includes/class.CommonFunctions.inc.php Line : 415
Already fixed: https://github.com/phpsysinfo/phpsysinfo/commit/a78110cd3b526685e30341f6f02296f23eeaf50a
[includes/os/class.Linux.inc.php](https://github.com/phpsysinfo/phpsysinfo/commit/a78110cd3b526685e30341f6f02296f23eeaf50a#diff-67f09111f47d4ff2b53899f3105e4d5816c6177c347bc98815c74a784a7bd33a)
@@ -743,7 +743,7 @@ protected function _cpuinfo()
case 'processor':
$proc = $arrBuff1;
if (is_numeric($proc)) {
- if (strlen($procname)>0) {
+ if (($procname !== null) && (strlen($procname)>0)) {
$dev->setModel($procname);
}
} else {
Try versions 3.4.0 or above and preferably the latest version 3.4.3.
I installed v3.4.3 and everything is fine. Thanks for your support, regards, oliaros
Describe the bug I'm running phpsysinfo on a Linux machine. I just updated from php v7.2 to php v8.1. Starting phpsysinfo I get the error msg:
Oh, I'm sorry. Something seems to be wrong. errorHandlerPsi :
PHP throws a error Level : 8192 Message : strlen(): Passing null to parameter #1 ($string) of type string is deprecated File : /var/www/htdocs/phpsysinfo/includes/os/class.Linux.inc.php Line : 389
errorHandlerPsi :
PHP throws a error Level : 8192 Message : strlen(): Passing null to parameter #1 ($string) of type string is deprecated File : /var/www/htdocs/phpsysinfo/includes/os/class.Linux.inc.php Line : 389
To Reproduce Just start phpsysinfo and click on the ERROR sign at the top of the page.
Expected behavior no idea
Screenshots not applicable
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
!! If you have any problems, please set
DEBUG
to true inphpsysinfo.ini
and include any error messages in your bug report / help request !!System information : xx.xx.xx (xx.xx.xx.xx)
System Vital