我在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 1324xamppfiles/pear/share/pear/Log/file.php确实存在,并且是可读和可写的。
有什么想法吗?
发布于 2013-04-17 14:32:55
我想通了。最大的错误是误导性的,而不是真正的问题。我的一些表已经损坏,MySQL服务器找不到.fmr,我删除了这些表(从文件系统中,而不是通过DROP),然后将它们恢复到较旧的版本。在那之后工作得很好。
https://stackoverflow.com/questions/13275351
复制相似问题