如何解决此警告:无法打开流:没有此类文件或目录 [英] How to solve this warning: failed to open stream: No such file or directory
问题描述
最近,我遇到了一个问题:
Recently, I had a problem as:
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
我使用了 Xampp
和 codeigniter-3
.
推荐答案
我猜是
在 application \ view \ errors \ html \
文件夹下, error_php.php
文件不存在或
在 application \ view \
文件夹下,根本不存在 errors
文件夹.
I am guessing that
Under application\view\errors\html\
Folder, error_php.php
file does not exist Or
Under application\view\
Folder, errors
folder does not exist at all.
您可以创建虚拟文件,看看是否有任何错误.
You can create dummy file and see if there is any error.
在 application/view/
下,创建文件夹名称 errors
,
然后在 errors
文件夹中,创建文件夹名称 html
然后在 html
文件夹中,创建php文件名 error_php.php
在 error_php.php
中
Under application/view/
, create folder name errors
,
then in errors
folder, create folder name html
then in html
folder, create php file name error_php.php
In error_php.php
,
<?php echo "Sample text."; ?>
这篇关于如何解决此警告:无法打开流:没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!