Simple Thoughts Blog Semplici pensieri blog had a sporadic but consistent comment problem. ha avuto un sporadici ma coerente commento problema. On submitting comments a blank page was occasionally returned instead of the original page with the comment added. Presentare osservazioni su una pagina vuota di tanto in tanto è stato restituito al posto della pagina originale con il commento aggiunto. How did I debug it? Come ho debug?

First I wanted to reproduce the error consistently. Prima ho voluto riprodurre l'errore costante. I could very rarely see this error with my Firefox browser, possibly because I remain logged in most of the time and/or cookies. Ho potuto vedere molto raramente questo errore con il mio browser Firefox, forse perché ho rimanere registrato la maggior parte del tempo e / o cookie. So I opened Internet Explorer and cleared the cache. Così ho aperto Internet Explorer e svuotata la cache. I created a test post and started adding comments. Ho creato un post di prova e ha iniziato l'aggiunta di commenti.
I was lucky. Sono stato fortunato. The bug was consistently reproducible in Internet Explorer. Il bug è stato costante e riproducibile 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. Tutto quello che ho dovuto fare è stato di aggiornamento come pagina di post (postando wp-comments.php) e una pagina vuota sarebbe tornato. My first job was done. Il mio primo lavoro è stato fatto.

BTW: In the process I discovered a stupid bug in WordPress’ implementation of first time moderation. BTW: Nel processo ho scoperto uno stupido errore in WordPress' attuazione della prima volta moderazione. It is purely email based. Esso ha carattere di e-mail in base.

Next I had to go in the code to find out the exact location of the error in wp-comments.php. Accanto ho dovuto andare nel codice per scoprire l'esatta ubicazione dell 'errore in wp-comments.php. However before I did that I wanted to remember which plugins hooked into wp-comments. Tuttavia, prima ho fatto che ho voluto ricordare che i collegamenti collegato in wp-commenti. The only one was L'unico è stato wp-hashcash WP-Hashcash , an excellent , Un eccellente comment spam prevention commento di prevenzione dello spam plugin.
So before going further I disabled the plugin. Quindi, prima di andare avanti ho disabilitato il plugin.

Voila, the error was gone. Voila, l'errore è stato fatto. I was using a really old version of the plugin, probably 1.5. Sono stato veramente utilizzando una vecchia versione del plugin, probabilmente a 1,5. So I tried upgrading. Così ho cercato un aggiornamento. However it started spewing strange database errors. Tuttavia ha cominciato spewing strano banca dati errori. So I decided to keep it disabled for now. Così ho deciso di tenerlo per disabili.

Now my blog is more vulnerable to comment spammers. Ora il mio blog è più vulnerabile agli spammer commento. However it will not prevent legitimate commentators from commenting anymore. Tuttavia non impedirà legittimo commentatori dal commentare più.

Thanks goes to Ringraziamento va a James Huff James Huff , who kindly pointed me to this error for the second or third time. , Che mi ha gentilmente a questo errore per la seconda o la terza volta. I couldn’t let it pass anymore thinking it was only occasional or postpone it for the next version of the site. Non ho potuto lasciarlo passare più pensare è stato solo occasionale o rinviarla per la prossima versione del sito.