本篇摘自熊猫github上的bug反馈贴https://github.com/AlanDecode/Typecho-Theme-VOID/issues/87

2025.1.31——底部本站运行时间出错

有一个小问题,未发表的文章保存为草稿时,会导致页面最下方的本站运行时间出错,从1970.1.1开始计时。 原因是此类文章尚未发表,所以数据库中存储的 create,即文章的发表时间,为0,导致函数 getBuildTime() 获取到的首篇文章的发表时间为0。

在主题文件夹/libs/Utils.php中的getBuildTime()处构造的sql指令中加一行 ->where('table.contents.created> 0') 就可以过滤掉时间为0的文章

->where('table.contents.created> 0')

2025.1.10——ExSearch获取索引失败

插件 ExSearch在TP1.2 开发版配合主题最新开发版中,重建索引报错:Argument 1 passed to Typecho\Widget::__construct() must be an instance of Typecho\Widget\Request, instance of Typecho\Request given, called in /www/wwwroot/demo/usr/plugins/ExSearch/Plugin.php on line 276

重建索引的错误需要把ExSearch 插件目录下的Plugin.php 的276行改为 widget = className::alloc(); 不需要之前那个很长的声明了。然后就好了

$widget = $className::alloc();

2025.1.10——点赞功能提示失败

投票返回失败,实则已经投票

插件版本问题,仓库下载最新版本

https://github.com/AlanDecode/VOID-Plugin

2024.1.8——切换发布版VOID主题后直接空白页面

经压缩后的css会存在异常错误,将压缩的css替换未压缩版即可

配置主题需要将VOID-3.5.1内assets的css复制到VOID主题的assets目录重命名即可。
压缩:https://github.com/AlanDecode/Typecho-Theme-VOID/releases

未压缩:https://github.com/AlanDecode/Typecho-Theme-VOID