Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 176055

Summary: phpSysInfo-2.5.2 multiple errors for common_functions.php line 351 and class.lmsensors.inc.php on line 71
Product: Gentoo Linux Reporter: Mudrii <mudrii>
Component: [OLD] UnspecifiedAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mudrii 2007-04-26 01:12:29 UTC
running phpsysconfig in browser shows multiple errors
1.File     Line     Command     Message
common_functions.php     351     file_exists(/proc/scsi/scsi)     the file does
not exist on your machine 

2 after compile k8temp in kernel get this error for lm_sensors
Notice: Undefined offset: 6 in
/var/www/localhost/htdocs/phpsysinfo/includes/mb/class.lmsensors.inc.php
on line 71

Notice: Undefined offset: 6 in
/var/www/localhost/htdocs/phpsysinfo/includes/mb/class.lmsensors.inc.php
on line 71

Warning: Cannot modify header information - headers already sent by
(output started at
/var/www/localhost/htdocs/phpsysinfo/includes/mb/class.lmsensors.inc.php:71)
in /var/www/localhost/htdocs/phpsysinfo/includes/system_header.php on
line 31

Warning: Cannot modify header information - headers already sent by
(output started at
/var/www/localhost/htdocs/phpsysinfo/includes/mb/class.lmsensors.inc.php:71)
in /var/www/localhost/htdocs/phpsysinfo/includes/system_header.php on
line 35


Work ground for 1
edit config.php and change line
$showerrors = true;
to 
$showerrors = false; 
or
edit var phpsysinfo/includes/os/class.Linux.in­c.php
and find the "function scsi ()".
Change line 354:
$bufr = rfts( '/proc/scsi/scsi' );
to
$bufr = rfts( '/proc/scsi/scsi', 0, 4096, false );
and that should make it behave on systems without any SCSI drives." 

Work ground for 2
edit config.php and change line
$showerrors = true;
to 
$showerrors = false; 


Reproducible: Always
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2007-04-26 02:14:33 UTC
*** Bug 176056 has been marked as a duplicate of this bug. ***
Comment 2 Michael Cramer 2007-05-15 20:21:45 UTC
can you please post this lmsensor bug to the phpsysinfo project page on sourcefore with the output of "sensors" as a text file, please so that i can have a look at this problem. the first error is already corrected in 2.5.3 which is not in portage at the moment.
Comment 3 Renat Lumpau (RETIRED) gentoo-dev 2007-05-26 22:39:22 UTC
bumped to 2.5.3, rest is upstream.  thanks all.