typecho 报错:Warning: Trying to access array offset on value of type null
php

typecho 报错:Warning: Trying to access array offset on value of type null

小楚辞
2024-08-13 / 0 评论 / 6 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2024年08月13日,已超过37天没有更新,若内容或图片失效,请留言反馈。

在使用joe主题中,开启文章评论时,前端评论后会显示“Warning: Trying to access array offset on value of type null”。
此处遇到的该错误发生在/theme/joe/core/function.php 文件中第 261 行,以上报错是php7.4 和 typecho 的兼容问题,解决该错误的方法是将:

echo '<div class="parent"><span style="vertical-align: 1px;">@</span> ' . $commentInfo['author']. '</div>';

改为:

echo '<div class="parent"></div>';
1

评论

博主关闭了当前页面的评论
您是第 2673 位访客