When the site is offline because of database failure, custom maintenance template (maintenance-page--offline.tpl.php) will not work. There is an error stating "Additional uncaught exception thrown while handling exception." and no markup is rendered in the page at all.

CommentFileSizeAuthor
#1 1722586-omega-uncaught-exception.patch763 bytesmrfelton

Comments

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new763 bytes

This is caused when class_exists() is being called from within alpha_get_theme() and autoloading fails. I have a patch that fixes this by wrapping those calls in a try/catch block. I'm not quite what should be done in the case of an error though, so I have just done nothing.

othermachines’s picture

#1 works for me in -dev (thanks!), although I'm using 7.x-3.1 in production and it won't apply cleanly. I'll just have to fudge it until the next stable release.

Shouldn't this be a higher priority than 'normal'? The output this bug is generating can cause unnecessary alarm (as if database failure weren't bad enough).

steinmb’s picture

Issue summary: View changes

Go bot

steinmb’s picture

Status: Needs review » Reviewed & tested by the community

Oldy. But still apply, and still make sense. RTBC. Now without a maintainer on the branch. How do we get it committed?