php问题小记

php错误不显示,只有404 not found
日志里也没有
在tp Application/Runtime/Log中发现

ERR: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

mysql Ver 8.0.17
PHP 7.0.33

检查下来怀疑是php7.0不支持caching_sha2_password

现正在尝试重新安装高版本php

通过以下办法重新安装 php7.2成功
https://www.centos.bz/2017/12/%E5%9C%A8-ubuntu-debian-%E4%B8%8B%E5%AE%89%E8%A3%85-php7-2/


log里问题
NOTIC: [2] include(): Filename cannot be empty /wwwroot/test.drroo.com/ThinkPHP/Library/Think/Think.class.php 第 314 行.

查看代码
// 包含异常页面模板 $exceptionFile = C('TMPL_EXCEPTION_FILE',null,THINK_PATH.'Tpl/think_exception.tpl');
打印路径后发现是路径大小写问题 Tpl 变成了 tpl 修改完路径名称 错误信息也出来了

Call to undefined function ThinkTemplatesimplexml_load_string()

原文地址:https://www.cnblogs.com/shining77/p/11550593.html