Blog Comments Problem Solved Blog commenti problema risolto
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.
Filed under Elencato sotto CMS Software CMS Software , Computer Security Computer Security , Firefox , Headline News Headline News , How To Come , Internet Explorer Internet Explorer , Open Source Software Software open source , Pro Blogging Pro Blogging , Tech Note Nota tech , Web , Web Services Servizi Web , WordPress | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |




February 22nd, 2006 at 11:58 am 22 febbraio 2006 a 11:58 am
I noticed the same strange database errors when using the 3.0 beta version of hashcash.. Ho notato lo stesso database di strano errori quando si usa il 3,0 versione beta di hashcash ..
so now you are not using hashcash at all? così ora non si sta utilizzando, a tutti i hashcash?
doesnt that mean you will get a flood of comment spam? non significa che avrete una marea di commenti spam?
I am not sure now what I should use as a spam prevention solution.. Non sono sicura di quello che ora dovrebbe utilizzare come spam prevenzione soluzione .. maybe I should go back to the older version of hashcash.. forse dovrei ritornare alla versione precedente di hashcash ..
February 22nd, 2006 at 12:27 pm 22 febbraio 2006 a 12:27 pm
No. I have stopped using HashCash. No ho smesso di utilizzare il Hashcash. I still have first comment moderation on. Ho ancora prima la moderazione dei commenti. 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. Così si spera (a meno che lo spammer utilizza l'exploit di cui al presente post) Vorrei avere la possibilità di moderare i commenti prima che appare sul sito.
If I start getting too many spams, as before, I will opt for Bad Behavior plugin. Se iniziare a ricevere troppi spam, come prima, mi optare per comportamenti non plugin. I have heard good words about it from James Huff aka MacManx. Ho sentito buone parole su di esso da James Huff pseudonimo MacManx.
February 22nd, 2006 at 1:07 pm 22 febbraio 2006 a 1:07 pm
I have been using Ho utilizzato Bad Behavior Bad Behavior for almost a year now. per quasi un anno ormai. It’s an excellent plugin and very effective at stopping bandwidth-wasting and email-harvesting bots as well as comment and trackback spam bots. Si tratta di un ottimo plug-in e molto efficace a fermare perdita di larghezza di banda ed e-mail-bot di raccolta e commento e trackback spam bots. Since the developer of Bad Behavior is never pleased by false positives, some spam comments do pass by its defenses. Dal momento che lo sviluppatore di comportamenti non è mai contento di falsi positivi, alcuni commenti spam di fare passare le sue difese. Once WordPress 2.0 was released about two months ago, I decided to add WordPress 2,0 una volta è stato rilasciato circa due mesi fa, ho deciso di aggiungere Akismet as a second layer of spam protection, and MacManX.com has been 100% spam-free ever since. come un secondo strato di protezione anti-spam, e MacManX.com è stato il 100% di spam-libero da allora.
February 22nd, 2006 at 1:23 pm 22 febbraio 2006 a 1:23 pm
> Bad Behavior is never pleased by false positives, some spam comments do pass by its defenses > Comportamenti non è mai contento di falsi positivi, alcuni commenti spam di fare passare le sue difese
I would support the Bad Behavior approach of focussing on eliminating false positives at the cost of letting few spams through. Desidero sostenere l'approccio comportamenti non di concentrare a eliminare i falsi positivi a costo di lasciare qualche spam attraverso. It is better than the overly aggresive approch of SpamKarma. E 'meglio che il eccessivamente aggressivo approch di SpamKarma.
So Bad Bahavior it is then Bad Bahavior così è allora
February 22nd, 2006 at 1:33 pm 22 febbraio 2006 a 1:33 pm
Good choice! Buona scelta!
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. Vorrei anche ricordare che ho ricevuto alcuna falsi positivi nel corso degli ultimi due mesi in cui ho utilizzato sia comportamenti non e Akismet. So, if you ever get tired of managing your moderation list, try adding Akismet to your mix. Pertanto, se si stancano mai di gestire il tuo elenco moderazione, prova ad aggiungere il tuo Akismet a mescolare.
February 22nd, 2006 at 10:28 pm 22 febbraio 2006 a 10:28 pm
James,
Thanks. Grazie.
I have two issues with Akismet. Ho due problemi con Akismet.
Firstly I do not fall under their narrow definition of non-commercial blog In primo luogo io non rientrano sotto la loro definizione ristretta di non commerciale blog
Secondly I somehow feel hesitant to hand over the control of my comments to third-party. In secondo luogo mi sento in qualche modo esitante a portata di mano il controllo delle mie osservazioni di terzi. Just from an architectural point it appears incorrect. Solo dal punto di vista architettonico risulta errata.
February 23rd, 2006 at 1:17 pm 23 febbraio 2006 a 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.. Non sono sicuro perché, ma mi chmoded il file wp-hashcash.key a 666 e la banca dati errori sembrano essere andati e posso accedere a tutti i miei blog belle pagine ora ..
I may use bad behavior eventually but I am a bit concerned about it blocking legitimate bots like google and yahoo etc. I potranno utilizzare eventualmente cattivo comportamento, ma sono un po 'preoccupato per il blocco è legittimo bot come Google e Yahoo, ecc
February 23rd, 2006 at 5:40 pm 23 febbraio 2006 a 5:40 pm
Angsuman, you make $500 or more per moth off of Simple Thoughts?! Angsuman, fate $ 500 o più al di fuori falena pensieri semplici?! You lucky blogger. Si fortunato blogger. As for third-party control, there really isn’t much there. Come per terze parti di controllo, c'è davvero poco. The Akismet server evaluates each incoming comment for spam content. Il server di Akismet valuta ogni commento in arrivo per il contenuto di spam. Comments marked as “spam” by the plugin are still stored in your database for fifteen days and viewable in a log interface. Commenti contrassegnati come "spam" dal plugin sono ancora memorizzate nel database per quindici giorni e visualizzabili in un log. 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. Se si trova un commento erroneamente segnato come "spam", vi basterà premere il "non spam" per postare sul tuo blog e presentare al Akismet per la nuova valutazione e sistema di istruzione, e visto-versa per qualsiasi commenti spam che ad andare oltre la plugin. Architecturally, Akismet seems like the best available anti-spam solution. Architettonicamente, Akismet sembra la migliore disponibile anti-spam soluzione. 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. L'effetto del contributo comunitario a valutare lo spam motore porta a commento di spam inondazioni essere arrestati su Internet in pochi secondi. 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. Secondo la Akistmet motore, ci sono stati "catturati 4242796 Spam finora, 63824 finora oggi, [e] 81% di tutti i commenti sono spam." Ma, se non potete o non volete usare Akismet, Bad Comportamento e una buona lista di moderazione si dovrebbe mantenere lo spam-free.
Thomas, Bad Behavior shouldn’t be blocking any well-established and properly-coded legitimate bots. Thomas, Bad comportamento non dovrebbe essere ogni blocco ben definito e adeguatamente codificati legittimo bot. Bad Behavior compares existing legitimate bots to their IPs and known behavior patterns. Comportamenti non confronta esistenti bot legittimo al loro IP e noto modelli di comportamento. 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. Ad esempio, comportamenti non sarà bloccare un bot con l'user agent Googlebot solo se provenienti da un non-IP di Google e / o non è seguito il comportamento di Googlebot pattern. If you are concerned, just check Bad Behavior’s log each day. Se siete interessati, basta verificare comportamenti non di log ogni giorno. For more information, look for the commented fields inside each of Bad Behavior’s files. Per ulteriori informazioni, cercare la commentato campi all'interno di ogni comportamento di Bad's file.
February 23rd, 2006 at 11:03 pm 23 febbraio 2006 a 11:03 pm
James,
Shh
Though I have to admit things are slowing down a bit for unknown reasons. Anche se devo ammettere cose stanno rallentando un po 'per motivi sconosciuti.
You have convinced me wrt. Voi mi hanno convinto WRT. Akismet. I will definitely try it. I will definately provarlo.
BTW: I noticed after eliminating wp-hashcash, I have started getting lots of legitimate comments. BTW: ho notato, dopo aver eliminando wp-hashcash, ho iniziato a ricevere i lotti del legittimo commenti. It appears wp-hashcash was eating (due to the bug you found) much more than just illegitimate comments. Sembra wp-hashcash è stato mangiare (a causa di bug che hai trovato), molto più di illegittima commenti.
February 24th, 2006 at 11:20 am 24 febbraio 2006 alle 11:20 am
Just wanted to give you a heads up.. Solo per darvi un heads up .. at 12:17 PM eastern time I got a “cannot connect to database error” when trying to access your page.. a 12:17 PM orientale tempo ho ricevuto un "non può collegarsi al database di errore" quando si tenta di accedere alla tua pagina ..
probably just a fluke but thought i should let you know probabilmente solo un trematode pensiero, ma vorrei far sapere
February 24th, 2006 at 12:35 pm 24 febbraio 2006 alle 12.35 pm
Thomas,
Thanks for the heads-up. Grazie per i capi-up.
Best, Il migliore,
Angsuman
July 7th, 2006 at 11:22 pm 7 luglio 2006 a 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). C'è un nuovo rilascio di comportamenti non capire quale dovrebbe affrontare il problema dei falsi positivi, soprattutto da parte di vari paesi asiatici del sud (che ha una rigorosa modalità di attesa, il quale si desidera disattivare per consentire questo traffico).
Combined with Akismet, you should no longer see 3000 spams a day Combinato con Akismet, lei non dovrebbe più vedere 3000 spam al giorno
July 7th, 2006 at 11:51 pm 7 luglio 2006 a 11:51 pm
Thanks Michael. Grazie Michael. I will try it out. Io provarlo.
February 3rd, 2007 at 11:41 am 3 febbraio 2007 alle 11:41
I’ve found that Akismet gives that blank page error on posting now (with WP 2.0.7). Ho trovato che Akismet che dà errore di pagina vuota sul distacco ora (con WP 2.0.7). The Akismet guys said they addressed the bug, but the new version still gives me the same problem. Akismet i ragazzi ha affermato di aver affrontato il bug, ma la nuova versione ancora mi dà lo stesso problema.
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! Re-consentendo Akismet anche dopo che è stato disattivato rivela il Spam che sono stati provenienti in e che è loro cattura anche se il plugin è disattivato, che è quasi un miracolo! Moreover, it revealed several false positives that I had to de-spam… Inoltre, essa ha rivelato diversi falsi positivi che ho avuto a de-spam…
Really not sure what’s going on. Veramente non è sicuro di cosa sta succedendo.