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發表評論