In 2.1beta, XoopsErrorHandler rivives (sigh...)
If you join to debug Cube 2.1beta, disable XoopsErrorHandler at first.
Use log_errors instead.
line 66 of class/errorhandler.php
function XoopsErrorHandler()
{
// set_error_handler('XoopsErrorHandler_HandleError');
// register_shutdown_function('XoopsErrorHandler_Shutdown');
}