Follow up to this:
In an attempt to override the default exception handler, in my theme_page_init
function (called on every page) I added:
//Override the default exception handler, route exception to oops page.
function custom_exception_handler($ex) {
redirect(new moodle_url('/local/oops.php'));
}
$OldExHdl=set_exception_handler('custom_exception_handler');
And it still doesn't work. Something is setting the exception handler back to 'default_exception_handler', but as far as I can tell the only place that is done is in setup.php, and I did a quick check using echo output, and confirmed that theme_page_init
is called after setup.php.
Help???