Archive for the ‘Uncategorized’ Category

CodeIgniter – Disallowed Key Characters

I ran into this issue recently and found that there was not many good answers on how to fix the issue. You first need to know what caused the error and Code Igniter doesn’t tell you. So I ended up modifying the core code to display the Characters in fault. This allowed me to immediately locate the culprit and fix it.

In the system/libraries directory there is a file called input.php

If you open that file and go to about line 200 you will see a line that says:

exit(‘Disallowed Key Characters: ‘);

It is in the function:
_clean_input_keys($str)

Modify that line to say:
exit(‘Disallowed Key Characters: ‘.$str);

Now the error will show you the sting at fault.