After switching to the code in my post #3 it started to work without those error messages.
Then a new error appeared at the bottom where the footer should appear. The new error is:
Code:
Content visible to verified customers only.
And the file indexstats.tmpl row 36 is just empty in the unmodified default file.
The deafult file looks like this:
Quote:
<?php
if ( $cat == 0 ) {
echo<<<PPPRINT
<!-- BEGIN TEMPLATE: indexstats.tmpl -->
<div class="blockcontainer gshad">
<div class="sbox collapse">
<h2 align="left" class="boxhead"><span class="boxtitle">$rp_phrase[stats]</span></h2>
</div>
<div class="box-body" align="center" id="rp_addhead">
<table class="gridtable hidegrid" align="center" border="0" cellpadding="4" cellspacing="1" width="100%">
<tr>
<td valign="top" align="left" width="100%">
<table width="100%" cellpadding="3" cellspacing="3" border="0">
<tr>
<td class="blockrow" colspan="7" align="center">
<span class="normal">{$cache[stats][usertotal]} $rp_phrase[regusers] {$cache[stats][totalproducts]}
$rp_phrase[products] {$cache[stats][totalviews]} $rp_phrase[views]
</span>
</td>
</tr>
<tr>
<td class="blockrow" colspan="7" align="$Globals[align1]">
<span class="smallfont">$whoonline</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
<!-- END TEMPLATE: indexstats.tmpl -->
PPPRINT;
?>
|
So, it seems to miss the end
on row 36 for the beginning if statement. After adding that to the file the error is gone.
So it seems to be problems with the default files attached with the download.