Page 1 of 1

Strange error in Cataloger

Posted: Fri May 03, 2013 3:42 am
by lehatdi
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:

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'}
etc..
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>
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:

Code: Select all

/var/www/user/data/www/domain/modules/Cataloger/Cataloger.module.php on line 541
line 541:

Code: 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;
		  }

Re: Strange error in Cataloger

Posted: Fri May 03, 2013 7:56 pm
by Jo Morg
Hi.
I checked the latest Cataloger version sources from the release.
Line 541, on the latest version doesn't correspond to the code you posted.
We need more info (system, CMSMS version, Cataloger version, etc) to try to help.
Best guess: Upgrade all.
HTH

Re: Strange error in Cataloger

Posted: Sat May 04, 2013 7:05 am
by lehatdi
yesterday i updated cms version to last, and cataloger version to last.
and i have same trouble here..

Re: Strange error in Cataloger

Posted: Sat May 04, 2013 7:31 am
by lehatdi
sorry, it was line 569 in last version of cataloger.

Code: Select all

		switch ($pagecontent->Type())