Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176056 - phpSysInfo-2.5.2 multiple errors for common_functions.php line 351 and class.lmsensors.inc.php on line 71
Summary: phpSysInfo-2.5.2 multiple errors for common_functions.php line 351 and class....
Status: RESOLVED DUPLICATE of bug 176055
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 01:13 UTC by Mudrii
Modified: 2007-04-26 02:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***