Strange error in Cataloger
Posted: Fri May 03, 2013 3:42 am
Hello, im using cataloger module,
i have about 10 categories, and im showing 1 product from each category on main page by using this code:etc..
Main template is simple, and show only image, title and link to full description..
And error, that i he is strange, because sometimes main page of the site working as it should, and sometimes i get this error. Sometimes i can refresh main page 5 times, and it working as it should, but next 5 times i get error:
line 541:
i have about 10 categories, and im showing 1 product from each category on main page by using this code:
Code: Select all
{cms_module module='Cataloger' action='random' sub_template='main' count='1' alias='category1'}{cms_module module='Cataloger' action='random' sub_template='main' count='1' alias='category2'}{cms_module module='Cataloger' action='random' sub_template='main' count='1' alias='category3'} {cms_module module='Cataloger' action='random' sub_template='main' count='1' alias='category4'}{cms_module module='Cataloger' action='random' sub_template='main' count='1' alias='category5'}
Main template is simple, and show only image, title and link to full description..
Code: Select all
<div id="up1"><table width="230" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6"><img src="images/upp1.jpg" width="230" height="13" /></td>
</tr>
<tr>
<td rowspan="2" width="9" height="290"><img src="images/l1.jpg" width="9" height="290" /></td>
<td colspan="4" width="212" height="222" valign="top">{section name=numloop loop=$items}
<center><a href="{$items[numloop].link}"><img src="{$items[numloop].image}" title="{$items[numloop].title}" border="0" /></a><br />
<b>{$items[numloop].title}</b></center></td>
<td rowspan="2" width="9" height="290"><img src="images/r1.jpg" width="9" height="290" /></td>
</tr>
<tr>
<td><img src="images/image_80.jpg" width="14" height="68" /></td>
<td><a href="{$items[numloop].link}"><img src="images/image_81.jpg" width="82" height="68" border="0" alt="Read more... {$items[numloop].title}" /></a></td>
<td></td>
<td><img src="images/image_83.jpg" width="58" height="68" /></td>
</tr>{/section}
</table></div>Code: Select all
/var/www/user/data/www/domain/modules/Cataloger/Cataloger.module.php on line 541Code: Select all
switch ($pagecontent->Type())
{
case 'catalogitem':
$thisItem['image'] = $this->imageSpec($pagecontent->Alias(),
's', 1, $itemThumbSize);
$thisItem['image_src'] = $this->srcImageSpec($pagecontent->Alias(),
1);
break;
case 'catalogcategory':
$thisItem['image'] = $this->imageSpec($pagecontent->Alias(),
'ct', 1, $catThumbSize);
break;
}