Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommentToMail启用插件后任何人提交评论后都会出现Server Error 500 #1

Open
tufu9441 opened this issue Mar 1, 2014 · 0 comments

Comments

@tufu9441
Copy link

tufu9441 commented Mar 1, 2014

CommentToMail启用插件后任何人提交评论后都会出现Server Error 500,这时地址栏中显示的链接不太对,是http://www.mydomain.com/category/slug.html/comment/(正常时应该形如http://www.mydomain.com/category/slug.html#comment-XXXXX),但返回日志页能看到评论内容添加上去了。同时通知邮件无法发送,记录中信息如下:

开始发送请求:http://www.haomwei.com/action/comment-to-mail?send=vIhAS8m
开始发送邮件Action:vIhAS8m
SMTP connect() failed.邮件发送完毕!
开始发送请求:http://www.haomwei.com/action/comment-to-mail?send=0NnTerW
开始发送邮件Action:0NnTerW
SMTP connect() failed.邮件发送完毕!
开始发送请求:http://www.haomwei.com/action/comment-to-mail?send=3CKATjK
开始发送邮件Action:3CKATjK
SMTP connect() failed.邮件发送完毕!
开始发送请求:http://www.haomwei.com/action/comment-to-mail?send=kQnNs5m
开始发送邮件Action:kQnNs5m
SMTP connect() failed.邮件发送完毕!

但我确定smtp账号密码应该没问题,而且换了其它的账号也是如此。
我看了errorlog,显示几次出错都是PHP Warning: strlen() expects parameter 1 to be string, array given in /home/haoming/public_html/typecho/var/Typecho/Validate.php on line 113
然后我进去看了line 113的内容是
$data[$key] = (0 == strlen($data[$key])) ? NULL : $data[$key];

但我根本也不懂……求教,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant