最近,我遇到了一个问题:

Warning:include(C:\xampp\htdocs\crackverbal\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in C:\xampp\htdocs\crackverbal\system\core\Exceptions.php on line 269

Warning: include(): Failed opening 'C:\xampp\htdocs\crackverbal\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\crackverbal\system\core\Exceptions.php on line 269

Warning: include(C:\xampp\htdocs\crackverbal\application\views\errors\html\error_php.php): failed to open stream: No such file or directory in C:\xampp\htdocs\crackverbal\system\core\Exceptions.php on line 269

Warning: include(): Failed opening 'C:\xampp\htdocs\crackverbal\application\views\errors\html\error_php.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\crackverbal\system\core\Exceptions.php on line 269

我使用了Xamppcodeigniter-3

最佳答案

我猜是
application\view\errors\html\文件夹下,error_php.php文件不存在
application\view\文件夹下,根本不存在errors文件夹。

您可以创建虚拟文件,看看是否有任何错误。

application/view/下,创建文件夹名称errors
然后在errors文件夹中,创建文件夹名称html然后在html文件夹中,创建php文件名error_php.php
error_php.php中,

<?php echo "Sample text."; ?>

关于codeigniter-3 - 如何解决此警告:无法打开流:没有此类文件或目录,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38431340/

10-11 22:51
查看更多