上传个人网站时出错。这是我得到的错误:
警告:
include(/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php):无法打开流:/ home2 / thefourpobu / public_html / tep / system / core / Exceptions中没有这样的文件或目录。第269行的PHP警告:include():无法打开'/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php'(include_path ='。:/ usr / lib / php:/第269行/home2/thefourpobu/public_html/tep/system/core/Exceptions.php中的usr / local / lib / php')警告:include(/ home2 / thefourpobu / public_html / tep / application / views / errors / html / error_php.php):无法打开流:第269行/home2/thefourpobu/public_html/tep/system/core/Exceptions.php中没有此类文件或目录警告:include():打开'/ home2 / thefourpobu / public_html失败在/ home2 / thefourpobu / public_html / tep /中包含/tep/application/views/errors/html/error_php.php'(include_path ='。:/ usr / lib / php:/ usr / local / lib / php')第269行的system / core / Exceptions.php警告:include(/ home2 / thefourpobu / public_ht ml / tep / application / views / errors / html / error_php.php):无法打开流:第269行/home2/thefourpobu/public_html/tep/system/core/Exceptions.php中没有此类文件或目录警告:包含():无法打开'/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php'以包含(include_path ='。:/ usr / lib / php:/ usr / local / lib / php ')在第269行/home2/thefourpobu/public_html/tep/system/core/Exceptions.php警告:include(/home2/thefourpobu/public_html/tep/application/views/errors/html/error_php.php):未能开放流:第269行/home2/thefourpobu/public_html/tep/system/core/Exceptions.php中没有此类文件或目录警告:include():打开'/ home2 / thefourpobu / public_html / tep / application / views /失败/home2/thefourpobu/public_html/tep/system/core/Exceptions.php中包含的错误/ html / error_php.php'(include_path ='。:/ usr / lib / php:/ usr / local / lib / php')在第269行
答案 0 :(得分:0)
这也让我受益匪浅。从CodeIgniter升级doc:
第8步:替换错误模板
在CodeIgniter 3.0中,错误模板现在被视为视图,并已移至application / views / errors目录。
此外,我们添加了对纯文本格式的CLI错误模板的支持,这与HTML不同,适用于命令行。这当然需要另一层次的分离。
您只需将ver 3.0中提供的errors文件夹复制到views文件夹即可。