【ThinkPHP】Fatal error: Uncaught think\exception\ErrorException: include(): Filename cannot be empty.
ThinkPHP 5.1框架报错记录
| ( ! ) Fatal error: Un caught think\exception\ErrorException: include(): Filename cannot be empty in /www/wwwroot/101.200.123.324/CMS1/thinkphp/library/think/exception/Handle.php on line 184 | ||||
|---|---|---|---|---|
| ( ! ) think\exception\ErrorException: include(): Filename cannot be empty in /www/wwwroot/101.200.123.324/CMS1/thinkphp/library/think/exception/Handle.php on line 184 |
程序中使用了.env用作参数配置,且配置项中出现特殊字符,且没有使用双引号引入。如下图:

如果上面的双引号去掉就会报上面的错。
本文来自博客园,作者:Carvers,转载请注明原文链接:https://www.cnblogs.com/carver/articles/16633300.html

浙公网安备 33010602011771号