Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Tiffany Brown's Blog:
Debugging tip: "Disallowed Key Character" error in CodeIgniter
May 07, 2008 @ 12:09:29

CodeIgniter fans might want to take note of this tip from Tiffany Brown concerning "disallowed key character" error messages.

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.

She eventually figured out that the newline and carriage return characters are not allowed as a part of the framework. Unfortunately, it was a random newline after a controller's code that did it for her.

tagged: codeigniter framework debug tip newline carriagereturn