代码报错

Bug,需求以及想法
回复
qq237661791
帖子: 4
注册时间: 2017年 5月 31日 15:07

代码报错

帖子 qq237661791 »

你好,我刚刚用了一下你们的程序。发现有错误。

报错信息
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Typecho_Common::exceptionHandle() must be an instance of Exception, instance of Error given in /path/var/Typecho/Common.php:235
Stack trace:
#0 [internal function]: Typecho_Common::exceptionHandle(Object(Error))
#1 {main}
thrown in /path/var/Typecho/Common.php on line 235

php 版本信息
PHP 7.1.4 (cli) (built: Apr 13 2017 13:22:31) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

nginx 版本信息
nginx version: nginx/1.10.2

源码获取路径
https://github.com/typecho/typecho/rele ... ase.tar.gz

我是在配置nginx伪静态的时候发现的这个问题,访问文章详情页面的话会返回500错误。才发现的这个问题,望解决。
qq237661791
帖子: 4
注册时间: 2017年 5月 31日 15:07

Re: 代码报错

帖子 qq237661791 »

已经解决了。
改了一个函数的参数类限制,详见这个链接
https://cun.lu/8/
回复