The PHP fatal error on screen is one continuous line making it difficult to read. Use the following to format the error:
ini_set('error_prepend_string', '<pre>');
ini_set('error_append_string', '</pre>');
ini_set('display_errors', 1);
Insert the code in the doc root index.php.
To wrap long text to screen width, use:
ini_set('error_prepend_string', '<pre style="white-space: pre-wrap;">');
ini_set('error_append_string', '</pre>');
ini_set('display_errors', 1);
Posted by kiatng to Tricks (2020-06-11 03:38)