Sciencetext提示和技巧

Tech talk, social media, computing tips and tricks 技术讲座,社会媒体,计算技巧和窍门

Blog Comments Fail Fixed博客评论固定失败

October 19th, 2009 · by David Bradley >> 09年10月19日·由大卫布拉德利“” Leave a comment发表评论

Sometimes trying to improve something is doomed to fail.有时,努力改善事情是注定要失败的。 I wanted to give Sciencetext readers a better experience when reading posts and leaving comments, so I installed various plugins one after the other that are supposed to boost discussion and increase the options available for commenters.我想给Sciencetext读者更好的体验在阅读职位和留下的意见,所以我安装后,其他的都应该加强讨论和更多的选择提供了一个提意见的各种插件。

I tried我尝试 Disqus征集 , which took an age to stall on importing comments, so I have up. ,历时年龄,拖延进口的意见,所以我了。

I tried我尝试 IntenseDebate IntenseDebate , which was fast to import, but then timed out on page load. ,这是快速地进口,但随后定时在页面加载了。

I tried我尝试 ChatCatcher ChatCatcher , which works on Sciencebase.com but spewed up errors and failed on Sciencetext. ,其中工程Sciencebase.com但喷出了错误,和Sciencetext失败。

I tried我尝试 Gravatars Gravatars , which worked briefly and show up in the comment dashboard but default to the default icon throughout the site proper. ,经过短暂的和整个网站的评论显示在仪表板,但默认为建立适当的默认图标。 FAIL.失败。

Obviously, I uninstalled each system after trying one at a time.很显然,我在尝试卸载一次一个每个系统。 And ran Clean Options and then did a database repair and optimize via phpMyAdmin, just to make sure everything was back to normal.跑清洁选项,然后做了数据库修复和优化通过phpMyAdmin的,只是为了确保一切恢复正常。 Of course, it wasn't.当然,这不是。 Comments were not working at all.评论是不工作的。 Readers trying to comment simply got a 404 error for the file wp-comments-post.php instead of seeing their comment displayed below the others on the post…读者要评论简直是一个文件可湿性粉剂404错误,评论post.php,而不是看到他们的评论如下帖子上的其他人显示...

This is where things start to get frustrating.这就是事情开始变得沮丧。 I doubled checked the comments files and configuration files in Wordpress for spurious blank lines at the start and end of each file.余一倍检查档案的评论在开始和结束时杂散每个文件的空行和WordPress的配置文件。 Somehow these can get added in error and blank lines at the top or bottom of a php script will break it.不知怎的,这些都得到增值的错误,并在顶部或底部的PHP脚本的空白行会打破它。 None of those were to blame.这些都不是难辞其咎。

So, was it the Theme, did my tinkering with all those plugins and addons some disrupt the site?所以,是它的主题,并与所有的插件和扩展我的修补,一些破坏的网站? Seems not I tested the site with the default theme and comments still failed.似乎不是我测试的默认主题和评论的网站还是失败了。

Final step was to check the site's .htaccess file (a root level configuration file) and lo and behold…up top a single spurious line totally unrelated to any of those plugins but linked to an anti-spam system now in place on Sciencetext.最后一步是检查站点的。htaccess文件(1根级别的配置文件),你瞧...建立一个虚假的顶部完全符合这些无关的任何插件,但链接到反垃圾邮件系统中发生的Sciencetext现在。 This spurious line was redirecting the wp-comments-post.php to nowhere, wrongly, of course.这虚假线重定向可湿性粉剂意见post.php走不通,错误的,当然。

Once I had removed the redirect line commenting was immediately back to normal…so please do take the opportunity to leave your thoughts below.当我删除了重定向线评论立即恢复正常...所以请不要借此机会,下面留下您的想法。 Also, if you want to know more about the spam filter we're using (which blocks all spam bots, 100% with no false positives ever) then send me your email address.此外,如果您想了解我们的垃圾邮件过滤器所使用的(能够阻止所有的垃圾邮件机器人,没有任何误报100%),然后给我您的电子邮件地址。

0 responses so far ↓ 0答复迄今↓

  • There are no comments yet...Kick things off by filling out the form below.目前尚未有任何意见...踢东西了填写下面的表格。

Leave a Comment发表评论