Propel无法访问PEAR日志文件

时间:2012-11-07 17:53:30

标签: xampp pear propel

我在XAMPP设置上安装了推进装置。我一直在进行一些平滑的编码过程,但需要对我的PHP.ini文件进行更改,所以就这样重新启动了apache。我暂时没有关闭apache进程,现在我尝试使用Propel时遇到错误:

Warning: fopen(/path/to/propel.log) [function.fopen]: failed to open stream: No such file    or directory in /Applications/XAMPP/xamppfiles/pear/share/pear/Log/file.php on line 216

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General   error: 1017 Can't find file: './ghir/intervention.frm' (errno: 13)' in /Applications/XAMPP/xamppfiles/htdocs/ghir-php/vendor/propel/runtime/lib/query/ModelCriteria.php:1321 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/ghir-php/vendor/propel/runtime/lib/query/ModelCriteria.php(1321): PDOStatement->execute() #1 /Applications/XAMPP/xamppfiles/htdocs/ghir-php/vendor/propel/runtime/lib/query/ModelCriteria.php(1164): ModelCriteria->doSelect(Object(PropelPDO)) #2 /Applications/XAMPP/xamppfiles/htdocs/ghir-php/model.php(41): ModelCriteria->find() #3 /Applications/XAMPP/xamppfiles/htdocs/ghir-php/js/globals.php(38): GHD->__construct('175') #4 /Applications/XAMPP/xamppfiles/htdocs/ghir-php/index.php(78): require_once('/Applications/X...') #5 {main} Next exception 'PropelException' with message 'Unable to execute SELECT statement [SELECT intervention.ID, intervention.NAME, intervention.ABBREVIATION, intervention.DESCRIPTION, intervention. in /Applications/XAMPP/xamppfiles/htdocs/ghir-php/vendor/propel/runtime/lib/query/ModelCriteria.php on line 1324

xamppfiles / pear / share / pear / Log / file.php确实存在,并且是可读写的。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

想出来。最重要的错误是误导,实际上不是问题。我的一些表已经损坏,MySQL服务器找不到.fmr。我删除了表(从文件系统,而不是通过DROP),然后将它们恢复到旧版本。之后工作得很好。