View Issue Details

IDProjectCategoryView StatusLast Update
0015292phplist applicationTemplate Managementpublic27-11-09 17:31
Reporterh2b2 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.10.10 
Target VersionFixed in Version2.10.11 
Summary0015292: View templates generates a blank page
DescriptionWhen trying to preview templates and clicking on the "view" link (e.g. lists/admin/?page=viewtemplate&id=1) the resulting page doesn't display the template preview.

This issue was reported by astralbaby and confirmed on my system.
ref: http://forums.phplist.com/viewtopic.php?p=62159#p62159
TagsNo tags attached.

Relationships

child of 0015369 resolvedmichiel 2.10.10 initial patches 

Activities

h2b2

28-08-09 05:55

manager   ~0050720

The following fix is suggested by tipichris in this forum post: http://forums.phplist.com/viewtopic.php?f=17&t=24593#p62867


    --- lists/admin/viewtemplate.php.orig Fri Jun 5 20:10:42 2009
    +++ lists/admin/viewtemplate.php Fri Jun 5 20:17:20 2009
    @@ -12,7 +12,7 @@
       print '

'.PageLink2("template&id=".$_GET["id"],$GLOBALS['I18N']->get('BackEditTemp')).'

';
    } else {
       ob_end_clean();
    - print previewTemplate($id,$_SESSION["logindetails"]["id"],nl2br($GLOBALS['I18N']->get('TempSample')));
    + print previewTemplate($_GET['id'],$_SESSION["logindetails"]["id"],$GLOBALS['I18N']->get('TempSample'));
    }

    ?>

h2b2

29-08-09 14:44

manager   ~0050727

The fix suggested by tipichris has been included in a patched lists/admin/viewtemplate.php file, available as an attachment in this forum post:
http://forums.phplist.com/viewtopic.php?f=17&t=24593&start=15#p67489

michiel

27-11-09 17:31

manager   ~0050786

revision 1697