解决 begin-asan 几个报错问题

2025年07月20日 Update ,

发表评论的时候报错1:

Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/stu.linsan.net/wp-content/themes/begin-asan/inc/function/function.php on line 797

这个简单,只需要找到对应行,找到这个字符,在外面加上单引号就行了。

修复后报错2:

Warning: A non-numeric value encountered in /www/wwwroot/stu.linsan.net/wp-content/themes/begin-asan/inc/function/comment-template.php on line 37

查阅后发现是楼层计算函数的问题:

$commentcount = $cpp * $page + 1;

这是个大问题,向豆包提供了整个文件内容后,给出了安全和兼容性更好的答案(略),已经修复。

muren的头像
  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: