Tiffany B. Brown

A web log about web development and internet culture with frequent detours into other stuff.
Who do you trust more: Corporations or Government?
Mike Gravel vs. Obama: “Juneau What? Anchorage What?”

Debugging tip: “Disallowed Key Character” error in CodeIgniter

After 6 hours of massive anxiety, stress, near tears, one pound on my desk, and some hair pulling, I tracked down the source of a nagging Disallowed Key Character error that I received while using CodeIgniter: an extra line break.

The line feed (LF) and carriage return (CR) characters (and their hex code equivalents (%0D and %0A) are forbidden in CodeIgniter’s framework. The hard part is tracking down exactly where that extra line break character lives.

In my case, there was an extra line of blank, barren, not-all-that-obvious white space at the very, very end of one of my controller files, just after the closing ?>.

Related:

Share this entry:
  • TwitThis
  • Digg
  • Technorati
  • del.icio.us
  • Ma.gnolia
  • Mixx
  • NewsVine
  • Reddit
  • StumbleUpon
  • TailRank
  • Global Grind
  • YahooMyWeb
  • Google
  • Live
  • LinkedIn
  • MySpace
previous post: Who do you trust more: Corporations or Government?
next post: Mike Gravel vs. Obama: “Juneau What? Anchorage What?”