Skip to content

[Bug] comments.php导致博客无法访问 #669

Open

Description

@Lucas2011wastaken

主题版本

1.3.5

Bug 类型

该 Bug 是后端问题

浏览器

此问题与前端无关

普遍性

否,只出现在特定的网站,并且知道触发条件

问题描述

安装Argon后,网站文章无法正常打开,提示agron PHP Warning: Undefined variable $commentCaptchaSeed in D:\wordpress\wp-content\themes\argon\comments.php on line 231

将该文件注释掉后,文章能正常打开,但是评论区无法正常渲染

复现步骤

  1. 打开主页
  2. 任意点击一篇文章
  3. 出现问题

截图

屏幕截图 2024-07-22 224041
屏幕截图 2024-07-22 224136
屏幕截图 2024-07-22 224201

附加说明

使用IIS构建,不知道是不是这个的问题

Activity

  1. Junnstoy commented on Jul 22, 2024

    @Junnstoy

    新建页面留言板,设置勾选允许评论,存在相同问题。留言板页面无法打开,报错PHP Warning: Undefined variable $commentCaptchaSeed in E:\wordpress\wp-content\themes\argon-theme-master\comments.php on line 231.

  2. Lucas2011wastaken commented on Jul 26, 2024

    @Lucas2011wastaken
    Author

    临时解决方案:把231行整行全部删掉
    是不是太粗暴了一点ᶘ ᵒᴥᵒᶅ

  3. learnMakeNote commented on Aug 25, 2025

    @learnMakeNote

    我也遇到这个问题了,怎么整,定位问题也是231行

  4. Lucas2011wastaken commented on Aug 31, 2025

    @Lucas2011wastaken
    Author

    @learnMakeNote

    临时解决方案:把231行整行全部删掉 是不是太粗暴了一点ᶘ ᵒᴥᵒᶅ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions