GithubHelp home page GithubHelp logo

typecho 1.2RC2 报错 500 about commenttomail HOT 28 CLOSED

soxft avatar soxft commented on August 28, 2024
typecho 1.2RC2 报错 500

from commenttomail.

Comments (28)

soxft avatar soxft commented on August 28, 2024

image

尝试在config.ini.php中 添加

define('TYPECHO_DEBUG', true);
打开typecho的debug模式,看一下详细报错

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024
syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
ParseError: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/usr/plugins/CommentToMail/Console.php:31
Stack trace:
#0 [internal function]: Typecho\{closure}('TypechoPlugin\\C...')
#1 /var/www/html/var/Typecho/Widget.php(154): spl_autoload_call('TypechoPlugin\\C...')
#2 /var/www/html/usr/plugins/CommentToMail/page/console.php(49): Typecho\Widget::widget('TypechoPlugin\\C...')
#3 /var/www/html/sagit457x/extending.php(14): require_once('/var/www/html/u...')
#4 {main}

from commenttomail.

soxft avatar soxft commented on August 28, 2024

使用的是什么php版本呢

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

7.3.29-fpm

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

要使用8.0+吗

from commenttomail.

soxft avatar soxft commented on August 28, 2024

要使用8.0+吗

是的

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

好吧,我试试

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

php 8.0 fpm
访问action地址的时候报错

Cannot assign stdClass to property TypechoPlugin\CommentToMail\Action::$_comment of type TypechoPlugin\CommentToMail\lib\Comment
TypeError: Cannot assign stdClass to property TypechoPlugin\CommentToMail\Action::$_comment of type TypechoPlugin\CommentToMail\lib\Comment in /var/www/html/usr/plugins/CommentToMail/Action.php:142
Stack trace:
#0 /var/www/html/usr/plugins/CommentToMail/Action.php(99): TypechoPlugin\CommentToMail\Action->deliverMail('gTSTrM6PzptWg49...')
#1 /var/www/html/var/Widget/Action.php(71): TypechoPlugin\CommentToMail\Action->action()
#2 /var/www/html/var/Typecho/Widget.php(155): Widget\Action->execute()
#3 /var/www/html/var/Typecho/Router.php(96): Typecho\Widget::widget('Widget_Do', NULL, Array)
#4 /var/www/html/index.php(23): Typecho\Router::dispatch()
#5 {main}

from commenttomail.

soxft avatar soxft commented on August 28, 2024

这个 貌似是, 对 数据库内邮件数据unserialize时 数据类型不一样的问题

可能是, 之前使用过类似的插件?

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

是的,要删掉数据库哪个条目吗

from commenttomail.

soxft avatar soxft commented on August 28, 2024

试试 删掉原来的那张表, 重新安装一遍插件

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

好的

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

是这张吗
image

from commenttomail.

soxft avatar soxft commented on August 28, 2024

对的

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

可以了

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

action 又有这样的错误了

<pre><code><h1>TypechoPlugin\CommentToMail\Action::deliverMail(): Argument #1 ($key) must be of type string, null given, called in /var/www/html/usr/plugins/CommentToMail/Action.php on line 99</h1>TypeError: TypechoPlugin\CommentToMail\Action::deliverMail(): Argument #1 ($key) must be of type string, null given, called in /var/www/html/usr/plugins/CommentToMail/Action.php on line 99 and defined in /var/www/html/usr/plugins/CommentToMail/Action.php:127
Stack trace:
#0 /var/www/html/usr/plugins/CommentToMail/Action.php(99): TypechoPlugin\CommentToMail\Action-&gt;deliverMail(NULL)
#1 /var/www/html/var/Widget/Action.php(71): TypechoPlugin\CommentToMail\Action-&gt;action()
#2 /var/www/html/var/Typecho/Widget.php(155): Widget\Action-&gt;execute()
#3 /var/www/html/var/Typecho/Router.php(96): Typecho\Widget::widget('Widget_Do', NULL, Array)
#4 /var/www/html/index.php(23): Typecho\Router::dispatch()
#5 {main}</code></pre>

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

用浏览器访问会导致网站504,只能用curl

from commenttomail.

soxft avatar soxft commented on August 28, 2024

用浏览器访问会导致网站504,只能用curl

可以用 uptimerobot 等工具 定时访问

from commenttomail.

soxft avatar soxft commented on August 28, 2024

访问 action 时要指定 后台设置的秘钥.
我忘记做空安全处理了. 后面会加一下

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

我是加上密钥访问的😂 但是也报错

from commenttomail.

soxft avatar soxft commented on August 28, 2024

啊😂 网址 应该类似 https://blog.xsot.cn/action/comment-to-mail?do=deliverMail&key=xxxxxxxx
这样 你看一下

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

是这样的

from commenttomail.

soxft avatar soxft commented on August 28, 2024

啊 那这个 就不太清楚了, 我等会儿换成RC2看下 . 我可能用的是rc1

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

😂😂好吧

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

刚装插件第一次访问还好好的,然后我测试发件,给博客卡成504了,然后我用curl试了一下发现这个报错

from commenttomail.

soxft avatar soxft commented on August 28, 2024

image

升级到 RC2 貌似 我是可以正常使用的, 可能是其他插件冲突吗?

from commenttomail.

Sagit-chu avatar Sagit-chu commented on August 28, 2024

Screenshot_2022-03-27-16-04-53-222_com android chrome
这。。。可能是哪个

from commenttomail.

soxft avatar soxft commented on August 28, 2024

要不 加个 QQ 群? NjA4MjY1OTEy看下

from commenttomail.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.