Hi all,
i have a very strange problem in TS 5.5.2.
generate a page from DCR works, iwregen fom cmd-line works, iwpt_complile works too. no errors in ocode-file. regenerate-page in TS "File"-Dropdown gives the error "Error in presentation template".
But only for a special file (DCR).
And now the strange thing.
the error is a perl-code which is not execute for this DCR (iw_case...).
PT:
<iw_iterate var="teaser" list="dcr.contentvariant" iteration="i">
<iw_load_dcr var="teaserDCR" file="{iw_value name='teaser.teaserDCR' /}" />
<iw_iterate var="teaser_rep" list="teaserDCR.contentvariant" iteration="t">
<iw_iterate var="teaser_type" list="teaser_rep.*">
<iw_ifcase name="teaser_type">
<iw_case type="Text">
this case is executed for that DCR
</iw_case>
<iw_case type="Grafik">
this is not executed for that DCR
<iw_perl>
my $width = "0";
my $height = "0";
--> my $pic_path = iwpt_dcr_value('teaser_type.grafik');
my $pic_fullpath = $WORKAREA_PATH.$pic_path;
if(-s $pic_fullpath) {($width, $height) = imgsize($pic_fullpath);}
if($height > 100 || $height == 0) {TeamSite:

Tparser::error("max. 100px: $height px"); }
if($width > 225 || $width == 0) {TeamSite:

Tparser::error(" max. 225px: $width px"); }
</iw_perl>
</iw_case>
</iw_ifcase>
</iw_iterate>
</iw_iterate>
</iw_iterate>
the marked line (-->) doesn't work, but it should not executed.
Any ideas?
Ciao,
Jens