If your database goes away, mothership as a maintenance theme throws lots of PHP include warnings:

Warning: include_once(.//template/template.functions.php): failed to open stream: No such file or directory in /var/www/drupal6-wrap-3055/sites/all/themes/mothership/template.php on line 16
...

This is because drupal_get_path() won't work if there's no system table.

A quick workaround is to check db_is_active() and use dirname(__FILE__) instead if the database is dead for any reason.

Please find attached a patch implementing this.

Comments

jp.stacey’s picture

Re-rolled so we use an unambiguous name for the mothership path directory variable.

jp.stacey’s picture

Getting a malformed patch from this one, so just re-rolled it: attached.

realityloop’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

If this is still an issue in D7 please re-open and update the version in issue metadata