好不容易安裝好eGroupWare,專案管理員,點選干特圖卻出現JpGraph error 25111的錯誤事件

修改gd_image.inc.php如下

if( file_exists($aStrokeFileName) ) {

// Wait for lock (to make sure no readers are trying to access the image)
//$fd = fopen($aStrokeFileName,'w');
//$lock = flock($fd, LOCK_EX);

// Since the image write routines only accepts a filename which must not
// exist we need to delete the old file first
if( !@unlink($aStrokeFileName) ) {
//$lock = flock($fd, LOCK_UN);
JpGraphError::RaiseL(25111,$aStrokeFileName);
//(" Can't delete cached image $aStrokeFileName. Permission problem?");
}
$aImage->Stream($aStrokeFileName);
//$lock = flock($fd, LOCK_UN);
//fclose($fd);

}
即可正常顯示干特圖

觀看訪客統計報表