有沒有碰到過這個問題,新版的svnmanager到windows下好多問題….,特此請求大家幫忙.

svnmanager v1.0.9在編輯使用者許可權和組許可權的時候都報錯,

apache log:

PHP Fatal error:  Class `PEAR_ErrorStack` not found in C:\Program Files\Apache Software 

Foundation\Apache2.2\htdocs\svnmanager\svnmanager\RepositoryModule\

UserPrivilegesEditPage.php on line 204, referer: http://svn.zzw.com/svnmanager/index.php?page=Repository:UserPrivilegesPage

ie:

 


Fatal error: Class `PEAR_ErrorStack` not found in C:Program FilesApache Software FoundationApache2.2htdocs

svnmanagersvnmanager

RepositoryModuleUserPrivilegesEditPage.php
 on line 204

 



row 204

svnmanagersvnmanagerRepositoryModule

//retrieve sub paths from repositoty

require_once(“VersionControl/SVN.php”);


require(“config.php”);

$svnstack = &PEAR_ErrorStack::singleton(`VersionControl_SVN`);
 


pear uninstall VersionControl_SVN-0.5.0卸掉0.5.0
pear install PEAR-1.9.4
pear install VersionControl_SVN-0.4.0重灌0.4.0就沒報這個錯了

 

找到VersionControl_SVN的檔案C:php5.2.17PEARVersionControlSVN.php

在674行: 

 


  1. $cmd = str_replace($this->svn_path, escapeshellarg($this->svn_path), $cmd); 

 

修改為: 


  1. $cmd = str_replace($this->svn_path, escapeshellarg($this->svn_path), `”`.$cmd.`”`); 

就好了: 

 

 漢化包,見附件.