rather often there are support requests regarding white/blank browser windows. The usual way to track down the problem is to activate debug mode, but many users are not aware of that. It would be best if CMSimple_XH was able to show an appropriate message after the error had occurred, but unfortunately that is not possible for fatal errors (E_ERROR etc.), which are most often the cause of the white screen.
So I suggest that we change the default of XH_debugmode() (i.e. when no file _XHdebug.txt is found) to something that displays such errors. As the errors are displayed in admin mode only, anyhow, this is no potential security issue, and usually users are better of to receive an error message instead of a blank browser window (even if the error message won't help them directly).
I'm not quite sure which error types should be used as default, however something like the following might be appropriate:
Code: Select all
E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR | E_RECOVERABLE_ERROR
We might consider to revise the current debug levels, BTW.
Christoph