隐藏错误无法为池分配内存

I realize the following error: “unable to allocate memory for pool” in mx loader appears because of high server activity and I should increase my memory in php.ini. However is there a way to hide such messages?

It wouldn’t be friendly to show such ugly red errors to website visitors it may freak them out. Is there a way to mask such errors and similar errors (if they occur) in a friendlier fashion?

You can hide the PHP error messages by setting the environment in index.php to testing or production. This turns off all PHP error reporting.

define('ENVIRONMENT', 'production');

The templates for the error messages are in application/errors - you can change the appearance of the messages here.