Uncaught Typeerror: Cannot Read Property 'replace' Of Null

When I enable in config.php define(‘DEVELOPMENT’, true); I received a blank page on front store with an error:

[color=#000000][font=Times][size=1]Uncaught TypeError: Cannot read property ‘replace’ of null[/size][/font][/color]

[attachment=9731:Screen Shot 2015-06-21 at 18.20.59.png]

Screen Shot 2015-06-21 at 18.20.59.png

Shouldn't be done in config.php but instead in config.local.php.

But either way, that is an odd error. I don't think they are related. A define has no 'type' other than const.

What does your php error_log file say?