Send Mark a Direct Message Problems Fixed #blogfail

| No TrackBacks
I just realized this evening that the "Send Mark a Direct Message" form on each page of my blog has been broken for quite some time.  An oversight on my part caused my code to reject messages from several readers.  Anyways, it's been fixed and I'd like to extend my sincere apologies to the many blog readers who tried to contact me without success.

What the heck happened anyways?

Well, several weeks ago I decided to increase the max size of acceptable messages from 200 characters to 400.  I tweaked my JavaScript to accept longer messages, but I somehow forgot to update the PHP that processes all incoming blog comments.  As a result, my PHP code was only processing messages less than 200 characters, and blindly rejecting everything else (even though my blog itself says the max message length is 400 characters).  I'm sure this was confusing and irritating to many folks.

define("MAX_MESSAGE_LENGTH", 400);

It's amazing how forgetting to change one character in a piece of code can really throw a huge monkey wrench into an otherwise smoothly working piece of software.

Did You Find this Helpful?

Did you find this post helpful, or at least, interesting?

  

Send Mark a Direct Message

If you'd like to send me a direct message, please do so below. However, I do not publicly post comments or messages submitted directly to me. So, if you're going to try to SPAM me, or my blog, you're pretty much wasting your time.

400 characters remaining

Error

About Mark

A Silicon Valley native, Mark Kolich is a full-time Software Engineer, a casual entrepreneur, and a consultant for hire. A web technologies expert, his current focus is on building powerful and robust cloud-driven web-applications using Java, PHP, Perl, AJAX, DHTML, CSS, and JavaScript. His favorite programming languages are PHP, Java and JavaScript. He uses Linux, enjoys biking to work, loves building great software, and always writes elegant, readable, and maintainable code.

No TrackBacks

No trackbacks attached to this entry.

Twitter (@markkolich)

Translate

About this Entry

This page contains a single entry by Mark Kolich published on August 18, 2009 8:14 PM.

New NetworkSolutions.com and Updated my NetSol Firefox/IE WHOIS Browser Plugin was the previous entry in this blog.

My First Tic-Tac-Toe Game is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.