• 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()

  • 相关阅读:
    Linux常用命令
    ServerSocketChannel和SocketChannel
    Java扫描包
    [BZOJ3874/AHOI2014]宅男计划
    [BZOJ4029/HEOI2015]定价
    [考试]20151012贪心
    [BZOJ4027/HEOI2015]兔子与樱花
    [考试]20151010
    [考试]20151009
    Test of String
  • 原文地址:https://www.cnblogs.com/shining77/p/11550593.html
Copyright © 2020-2023  润新知