Closed (fixed)
Project:
Commerce Kickstart
Version:
7.x-2.0-alpha3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2012 at 19:59 UTC
Updated:
20 Aug 2012 at 16:41 UTC
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
Comment #1
bojanz commentedWe 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.
Comment #2
cookiz commentedhttps://code.drupalcommerce.org/264.
Comment #3
bojanz commentedMerged. Needs matching omega_kickstart commit.
Comment #4
cookiz commentedMatching omega_kickstart commit : http://drupalcode.org/project/omega_kickstart.git/commit/432558e1914e112...
Comment #5
bojanz commentedGreat :)