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

Bug 176056

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 Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mudrii 2007-04-26 01:13:10 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

*** This bug has been marked as a duplicate of bug 176055 ***