Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176055 - 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 UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
: 176056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-26 01:12 UTC by Mudrii
Modified: 2007-05-26 22:39 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: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.