Blog Comments Problem Solvedブログのコメントを問題解決
Simple Thoughts Blog簡単な思考のブログ had a sporadic but consistent comment problem.しかし、コメントの整合性の問題は散発的です。 On submitting comments a blank page was occasionally returned instead of the original page with the comment added.コメントを提出時折、空白のページが返されるのではなく、元のページにコメントが追加されました。 How did I debug it?デバッグはどのように私ですか?
First I wanted to reproduce the error consistently.最初のエラーを再現するにしたかった一貫しています。 I could very rarely see this error with my Firefox browser, possibly because I remain logged in most of the time and/or cookies.このエラーが表示さめったにない私が私のFirefoxブラウザは、記録される可能性のため、私はほとんどの時間および/またはcookieを許可します。 So I opened Internet Explorer and cleared the cache.だからオープンインターネットエクスプローラとクリアしてキャッシュをクリアします。 I created a test post and started adding comments.私のテストを作成したコメントの追加作成を開始します。
I was lucky.私はラッキーだと思う。 The bug was consistently reproducible in Internet Explorer.このバグは、再現性を常にインターネットエクスプローラを起動します。 All I had to do was refresh as post page (posting to wp-comments.php) and a blank page would be returned.すべてのリフレッシュとして私はこれを行うには、投稿ページ(投稿するのWP - comments.php )と、空白のページが返されます。 My first job was done.私の最初の仕事は完了です。
BTW: In the process I discovered a stupid bug in WordPress’ implementation of first time moderation.ところで:私の過程で愚かなバグを発見したのWordPress 'の実装を第一時間楽しみください。 It is purely email based.それは、純粋に電子メールをベースです。
Next I had to go in the code to find out the exact location of the error in wp-comments.php.次のページに行く私は、コードの正確な場所を確認するには、 comments.phpのWPにエラーが発生します。 However before I did that I wanted to remember which plugins hooked into wp-comments.しかし私はその前にしたかったフックさを覚えてどのプラグインのWP -コメントはありません。 The only one was唯一の1つは、 wp-hashcashのWP - HashCashの , an excellentが、優秀な comment spam preventionコメントスパム防止 plugin.差込式です。
So before going further I disabled the plugin.より詳細な私無効にして前に行くので差込式です。
Voila, the error was gone.出来上がり、このエラーは消えていた。 I was using a really old version of the plugin, probably 1.5.私は本当に古いバージョンを使用して、差込式、おそらく1.5です。 So I tried upgrading.だからアップグレードしようとします。 However it started spewing strange database errors.しかし奇妙なことかんしゃくを開始データベースエラーが発生します。 So I decided to keep it disabled for now.だから状態に保つことを無効にすることを決めた。
Now my blog is more vulnerable to comment spammers.今すぐブログのコメントは、他の脆弱性がスパマーのです。 However it will not prevent legitimate commentators from commenting anymore.しかし合法的な解説を防ぐことはできませんからのコメントはない。
Thanks goes toおかげ行く James Huffジェームズハフ , who kindly pointed me to this error for the second or third time. 、 who親切に指摘私に、このエラーは、 2番目または3回目です。 I couldn’t let it pass anymore thinking it was only occasional or postpone it for the next version of the site.私できませんでしたもう行かせないと思っては、時折または延期することにのみ、次のバージョンのためのサイトです。
Filed under提出されて CMS Software CMSソフトウェア , 、 Computer Securityコンピュータセキュリティ , 、 Firefox Firefoxの , 、 Headline Newsニュースの見出し , 、 How Toどのように , 、 Internet Explorerインターネットエクスプローラ , 、 Open Source Softwareオープンソースのソフトウェア , 、 Pro BloggingプロBlogging , 、 Tech Note技術のノート , 、 Webウェブ , 、 Web Services Webサービス , 、 WordPress WordPressの | |
| |
RSS 2.0 RSS 2.0を | |
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




February 22nd, 2006 at 11:58 am 2006年2月22日の午前8:58
I noticed the same strange database errors when using the 3.0 beta version of hashcash..気付いた奇妙なデータベースエラーが発生する場合と同じ3.0のベータ版を使用して、 HashCashの..
so now you are not using hashcash at all?を使用していない、今すぐにすべてのHashCashのですか?
doesnt that mean you will get a flood of comment spam? doesntの洪水を意味するとのコメントをマークですか?
I am not sure now what I should use as a spam prevention solution..私はどうすべきか分からない今すぐ使用できるように迷惑メール防止ソリューション.. maybe I should go back to the older version of hashcash..たぶん私は必要に戻って、以前のバージョンのHashCashの..
February 22nd, 2006 at 12:27 pm 2006年2月22日は午後7:27
No. I have stopped using HashCash.私はHashCashの記号を使用して停止します。 I still have first comment moderation on.私は今でも最初のコメントの管理をします。 So hopefully (unless the spammer uses the exploit mentioned in this post) I will get a chance to moderate the comments before it appears on the site.これうまくいけば(スパマーを使用して悪用されない限り、このポストに記載され)私は穏健派のコメントをする機会を前に、サイトに表示されています。
If I start getting too many spams, as before, I will opt for Bad Behavior plugin.スパムの数が多すぎますスタート]ボタンを取得すればよい、とする前に、私は差込式の行儀の悪さを選ぶ。 I have heard good words about it from James Huff aka MacManx.うまい言葉を参照していると聞いたことからジェームズハフのakaにMacManXです。
February 22nd, 2006 at 1:07 pm 2006年2月22日は1:07 pmの
I have been using私が使用して Bad Behavior悪い行動 for almost a year now.ほぼ1年を今すぐです。 It’s an excellent plugin and very effective at stopping bandwidth-wasting and email-harvesting bots as well as comment and trackback spam bots.それは素晴らしい差込式と非常に効果的に阻止帯域幅を浪費すると電子メール-収穫ロボットだけでなく、コメントやトラックバックスパム対策です。 Since the developer of Bad Behavior is never pleased by false positives, some spam comments do pass by its defenses.以来、開発者の悪い行動は決して喜んで偽陽性、いくつかのマークのコメントを行うにパスされ、防御します。 Once WordPress 2.0 was released about two months ago, I decided to add一度のWordPress 2.0がリリースさ約2か月前、私を追加することを決めた Akismet Akismetの差 as a second layer of spam protection, and MacManX.com has been 100% spam-free ever since. 2番目の層としてマークの保護、およびmacmanx.comされて以来、 100 %マーク-無料です。
February 22nd, 2006 at 1:23 pm 2006年2月22日1:23 pmの
> Bad Behavior is never pleased by false positives, some spam comments do pass by its defenses >悪い行動は決して喜んで偽陽性、いくつかのマークのコメントを行うにパスされ、防衛
I would support the Bad Behavior approach of focussing on eliminating false positives at the cost of letting few spams through.私が悪いの動作をサポートして焦点を合わせずにアプローチを排除する偽陽性の通知を犠牲にしていくつかのスパムを介しています。 It is better than the overly aggresive approch of SpamKarma.それよりはましspamkarma 、あまりにも攻撃的なアプローチのです。
So Bad Bahavior it is then悪いことはbahaviorので入力し、
February 22nd, 2006 at 1:33 pm 2006年2月22日は1:33 pmの
Good choice!いいねえ!
I should also mention that I have received absolutely no false positives during the past two months in which I have been using both Bad Behavior and Akismet.私にも触れて私は全くない偽陽性受信中に、過去2カ月間では私が行儀の悪さやAkismetの差の両方を使用しています。 So, if you ever get tired of managing your moderation list, try adding Akismet to your mix.だから、もし飽きたら中庸のリストを管理してみてくださいAkismetの差を追加してミックスされます。
February 22nd, 2006 at 10:28 pm 2006年2月22日は10:28 pmの
James,ジェームズは、
Thanks.ありがとう。
I have two issues with Akismet.私は2つの問題がAkismetの差です。
Firstly I do not fall under their narrow definition of non-commercial blogまず私は秋の下にある非営利のブログの定義を狭い
Secondly I somehow feel hesitant to hand over the control of my comments to third-party.第二に何となく感じる私の支配権を手渡すのをためらって私にコメントをサードパーティ製のです。 Just from an architectural point it appears incorrect.それからの建築ポイントだけが表示されたら間違っています。
February 23rd, 2006 at 1:17 pm 2006年2月23日1:17 pmの
I am not sure why, but I chmoded the file wp-hashcash.key to 666 and the database errors seem to be gone and I can access all my blogs pages fine now..私はなぜか分からないが、私のWPのファイルchmoded hashcash.keyを666とデータベースのようにエラーが去った後、私は私のブログのすべてのページにアクセス微細今すぐ..
I may use bad behavior eventually but I am a bit concerned about it blocking legitimate bots like google and yahoo etc.結局私が悪い行動を使用ビットしかし、私は心配してブロックするGoogleやYahooなどのような合法的なボット
February 23rd, 2006 at 5:40 pm 2006年2月23日は5:40 pmの
Angsuman, you make $500 or more per moth off of Simple Thoughts?!のAngsuman 、あなたに500ドル以上の1蛾オフの単純な考えですか? ! You lucky blogger. Bloggerのあなたラッキーです。 As for third-party control, there really isn’t much there.サードパーティ製のコントロールとしては、実際には多くある。 The Akismet server evaluates each incoming comment for spam content. Akismetの差を評価し、各サーバーのコメントをマークコンテンツを受信します。 Comments marked as “spam” by the plugin are still stored in your database for fifteen days and viewable in a log interface.コメントスパムとして"マーク"されたプラグインはまだしてデータベースに格納され15日間と見られるインターフェイスをログに記録します。 If you find a comment incorrectly marked as “spam”, just hit the “not spam” button to post it on your blog and submit to Akismet for re-evaluation and system education, and visa-versa for any spam comments that get past the plugin.コメントを見つけた場合の使い方を誤るとスパムとして"迷惑メール"は、ヒットの"迷惑メール"ボタンをクリックしてブログを作成して提出するとAkismetの差を再評価およびシステムの教育、とビザを使用するため、過去の任意のマークのコメントを得る差込式です。 Architecturally, Akismet seems like the best available anti-spam solution.建築、 Akismetの差は反スパムのように利用可能な最善の解決策です。 The effect of the community contribution to the spam evaluating engine leads to comment spam floods being stopped across the internet in a matter of seconds.社会貢献をするの効果を評価するエンジンのマークが停止つながるコメントスパムの洪水のためにインターネット経由で数秒の間にします。 According to the Akistmet engine, there have been “4,242,796 spams caught so far, 63,824 so far today, [and] 81% of all comments are spam.” But, if you can’t or don’t want to use Akismet, Bad Behavior and a good moderation list should keep you spam-free. akistmetによると、エンジンは、これまで" 4242796スパム摘発これまでのところ、これまでのところ63824今日、 [や] 81 %のすべてのコメントはマークです。 "しかし、もしすることはできません。 Akismetの差を使用するかどうか、不良中庸のリストの動作と良いようにマーク-無料です。
Thomas, Bad Behavior shouldn’t be blocking any well-established and properly-coded legitimate bots.トーマス、悪い行動はできませんし、正しくブロッキング任意のコード十分に確立した合法的なロボットです。 Bad Behavior compares existing legitimate bots to their IPs and known behavior patterns.悪い行動を比較して、既存の合法的なロボット型IPSと既知の行動パターンを使用します。 For example, Bad Behavior will block a bot with the Googlebot user agent only if it came from a non-Google IP and/or it is not following the Googlebot’s behavior pattern.たとえば、お行儀の悪さは、ボットをブロックするユーザーエージェントでは、 Googlebotが来た場合にのみ、 Google以外のIPおよび/または次のでは、 Googlebotではないの行動パターンです。 If you are concerned, just check Bad Behavior’s log each day.問題がある場合は、悪い行動のログだけを毎日チェックします。 For more information, look for the commented fields inside each of Bad Behavior’s files.詳細については、コメントを探し、それぞれのフィールド内のファイルの行儀の悪さです。
February 23rd, 2006 at 11:03 pm 2006年2月23日は11:03 pmの
James,ジェームズは、
Shh泣かない
Though I have to admit things are slowing down a bit for unknown reasons.僕は物事が減速を認めざるを少し不明な理由です。
You have convinced me wrt.私は確信をwrtで変わった。 Akismet. Akismetの差です。 I will definitely try it.私はdefinitelyやってみなよ。
BTW: I noticed after eliminating wp-hashcash, I have started getting lots of legitimate comments.ところで:気付いたのWP - HashCashのを排除した後、私はたくさんの就学許可証の合法的なコメントを開始します。 It appears wp-hashcash was eating (due to the bug you found) much more than just illegitimate comments.食べるように見えるのWP - HashCashのは(バグを見つけたのために)非嫡出のコメントをはるかに超えるだけです。
February 24th, 2006 at 11:20 am 2006年2月24日は11:20
Just wanted to give you a heads up..指名手配を与えるだけに、ヘッドアップ.. at 12:17 PM eastern time I got a “cannot connect to database error” when trying to access your page.. 12:17 pmの東部標準時で私は、 "データベースに接続してエラーが発生することはできません"お客様のページにアクセスしようとする..
probably just a fluke but thought i should let you knowしかし、おそらく単なるまぐれだと思っては知っせていただきます。
February 24th, 2006 at 12:35 pm 2006年2月24日は12:35 pmの
Thomas,トーマス、
Thanks for the heads-up.ヘッドアップてくれてありがとう。
Best,最高の、
AngsumanのAngsuman
July 7th, 2006 at 11:22 pm 2006年7月7日11:22 pmの
There’sa new release of Bad Behavior out which should address your issue of false positives, especially from various South Asian countries (it has a strict mode, which you want to disable to allow this traffic).ある新しいリリースの不良動作してアウトには、アドレスを誤検知の問題、特に南アジアの国々から様々な(これには、厳格なモードでは、これを無効にしたいこのトラフィックを許可する) 。
Combined with Akismet, you should no longer see 3000 spams a day Akismetの差組み合わせて、 3000を参照する必要がスパムを一日もはや
July 7th, 2006 at 11:51 pm 2006年7月7日は11:51 pmの
Thanks Michael.マイケルのおかげです。 I will try it out.私は試してみてください。
February 3rd, 2007 at 11:41 am 2007年2月3日11:41アム
I’ve found that Akismet gives that blank page error on posting now (with WP 2.0.7).私は空白のページが見つかりましたがAkismetの差にそのエラーが発生する投稿する(おWPの2.0.7 ) 。 The Akismet guys said they addressed the bug, but the new version still gives me the same problem. Akismetの差人の対処によると、そのバグは、新しいバージョンをまだ与えてくれるが、同じ問題を抱えています。
Re-enabling Akismet even after it’s been deactivated reveals the spams that have been coming in and that it’s trapping them even though the plugin is disabled, which is almost a miracle! Akismetの差を有効にした後で再停止されたことが明らかにされているのスパムが来ることで、それにもかかわらず、差込式の捕集が無効になって、これはほとんど奇跡! Moreover, it revealed several false positives that I had to de-spam…また、明らかに私はいくつかの偽陽性をデ-マーク…
Really not sure what’s going on.本当に何が起こっているか分からない。