Make sure debug mode is off. Remove the debug line from the library/config.php file if you previously added it.
If you still get the error then you need to ask your host to increase or disable PHP's memory_limit.
You can also try changing the memory_limit yourself. These methods don't always work, but try adding this to your library/config.php file