AlanDecode / Typecho-Theme-VOID

🐒 猴子打字机原理的产物
https://blog.imalan.cn/archives/247/
MIT License
851 stars 129 forks source link

🐛 Bug收集贴!Call for bugs! #87

Open AlanDecode opened 1 year ago

AlanDecode commented 1 year ago

十分感谢大家对 VOID 的厚爱,由于本人过去两年里沉迷谈恋爱和养小猫,没抽出时间来维护。现在女朋友和小猫都看不下去了。女朋友说:你再不更新 VOID,我就要怀疑你的人品了;小猫说:你再不更新 VOID,我就要离家出走了。

现在! 立下此贴收集 VOID 主题以及我的相关插件PHP 8.0+Typecho 1.2+ 使用时存在的问题!我会尽快修复!

祝好

mikusaa commented 1 year ago

希望表格可以居中展示 image

AlanDecode commented 1 year ago

希望表格可以居中展示 image

收到🫡

Man-Yacan commented 1 year ago

希望表格可以居中展示 image

可以先添加自定义CSS来解决:

.yue table {
margin: 0 auto;
width: max-content
}
FaceChan commented 1 year ago

大哥,我的评论直接故障了。

Man-Yacan commented 1 year ago

大哥,我的评论直接故障了。

最好是可以把报错代码、截图以及网址提供下,方便大家看。

ihuanx commented 1 year ago

还好没有分手 不然停更更久 ..

Nliver commented 1 year ago

还好没有分手 不然停更更久 ..

0x3st commented 1 year ago

用的是发布版的3.5.1,点击使用主题的时候变成这样了 image 主页变成空白的了。 有什么解决方案吗

AlanDecode commented 1 year ago

用的是发布版的3.5.1,点击使用主题的时候变成这样了 image 主页变成空白的了。 有什么解决方案吗

可以先试试看开发版

Man-Yacan commented 1 year ago

插件 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

cnmoe commented 1 year ago

催更

TheFunny commented 1 year ago

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

wacsy commented 1 year ago

发现一个小问题,IP.php那个插件的37 到40 行,字符串的index用的是{},好像php现在只支持[]来引用了。

wacsy commented 1 year ago

插件 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(); 不需要之前那个很长的声明了。然后就好了

wacsy commented 1 year ago

使用typecho 1.2.1版本 php 8.3,好像高级设置无法传到$setting 变量里。例如我想关闭mac 代码还有添加nav,都没有用。但如果直接在Utils.php里直接改setting 是可以的。不知道是不是$options->advance的问题

Harry-Pan commented 11 months ago

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

在Utils.php中的getBuildTime()处构造的sql指令中加一行->where('table.contents.status = ?', 'publish'),就可以过滤掉其他内容,只查询已经发表的文章了。

TwinIsland commented 9 months ago

如果内联公式太长的话会导致overflow,比如在文章中插入:

The interquartile range of a dataset $\{x\}$ is $iqr(\{x\})=percentile(\{x\},75)-percentile(\{x\},25 )$

移动端页面就会成这样:

查看图片

还有一个类似问题,如果非内联公式太长的话移动端页面就不能完全显示公式:

$$
w(n) = 0.5 \times \left(1 - \cos\left(\frac{2\pi n}{N-1}\right)\right), \quad N = 64
$$
查看图片
joooqi commented 8 months ago

期待作者可以早些更新新的版本,毕竟马上就要2024年了🤣

kewake commented 6 months ago

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

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

jkjoy commented 5 months ago

打不开 空白 php8.2

cnmoe commented 3 months ago

咕咕咕(当你看到这条评论说明咕咕咕)

BIYUEHU commented 1 month ago

1.3.5 空白 打不开