Comments (28)
尝试在config.ini.php中 添加
define('TYPECHO_DEBUG', true);
打开typecho的debug模式,看一下详细报错
from commenttomail.
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.
使用的是什么php版本呢
from commenttomail.
7.3.29-fpm
from commenttomail.
要使用8.0+吗
from commenttomail.
要使用8.0+吗
是的
from commenttomail.
好吧,我试试
from commenttomail.
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.
这个 貌似是, 对 数据库内邮件数据unserialize时 数据类型不一样的问题
可能是, 之前使用过类似的插件?
from commenttomail.
是的,要删掉数据库哪个条目吗
from commenttomail.
试试 删掉原来的那张表, 重新安装一遍插件
from commenttomail.
好的
from commenttomail.
from commenttomail.
对的
from commenttomail.
可以了
from commenttomail.
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->deliverMail(NULL)
#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}</code></pre>
from commenttomail.
用浏览器访问会导致网站504,只能用curl
from commenttomail.
用浏览器访问会导致网站504,只能用curl
可以用 uptimerobot 等工具 定时访问
from commenttomail.
访问 action 时要指定 后台设置的秘钥.
我忘记做空安全处理了. 后面会加一下
from commenttomail.
我是加上密钥访问的😂 但是也报错
from commenttomail.
啊😂 网址 应该类似 https://blog.xsot.cn/action/comment-to-mail?do=deliverMail&key=xxxxxxxx
这样 你看一下
from commenttomail.
是这样的
from commenttomail.
啊 那这个 就不太清楚了, 我等会儿换成RC2看下 . 我可能用的是rc1
from commenttomail.
😂😂好吧
from commenttomail.
刚装插件第一次访问还好好的,然后我测试发件,给博客卡成504了,然后我用curl试了一下发现这个报错
from commenttomail.
升级到 RC2 貌似 我是可以正常使用的, 可能是其他插件冲突吗?
from commenttomail.
from commenttomail.
要不 加个 QQ 群? NjA4MjY1OTEy看下
from commenttomail.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commenttomail.