While developing with Commerce Kickstart Theme 7.x-2.0-alpha3 set as default, when a PHP error is thrown the maintenance page won't display the error details.

Added the following code to WEB_ROOT/profiles/commerce_kickstart/themes/commerce_kickstart_theme/templates/maintenance-page.tpl.php

    <?php if ($title): ?><h1 class="page-title"><?php print $title; ?></h1><?php endif; ?>
    <?php print $content; ?>
//new code starts here
    <?php if ($messages): ?>
         <div id="messages"><div class="section clearfix">
            <?php print $messages; ?>
         </div></div> <!-- /.section, /#messages -->
    <?php endif; ?>

It appears to fix it.

Comments

bojanz’s picture

Assigned: Unassigned » cookiz
Status: Needs review » Active

We need a gerrit commit that fixes this, and we need to make sure that the same problem is not present (or gets fixed at the same time) in commerce_kickstart_admin and omega_kickstart.
You can add a bad SQL query somewhere in the page to test the triggering of the maintenance theme.

cookiz’s picture

Assigned: cookiz » bojanz
Status: Active » Needs review
bojanz’s picture

Assigned: bojanz » cookiz
Status: Needs review » Needs work

Merged. Needs matching omega_kickstart commit.

cookiz’s picture

bojanz’s picture

Assigned: bojanz » Unassigned
Status: Needs work » Fixed

Great :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.