我在 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 确实存在,并且是可读写的。
有任何想法吗?