Strange error in Cataloger

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
lehatdi
New Member
New Member
Posts: 3
Joined: Thu May 02, 2013 10:56 am

Strange error in Cataloger

Post 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;
		  }
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: Strange error in Cataloger

Post 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
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
lehatdi
New Member
New Member
Posts: 3
Joined: Thu May 02, 2013 10:56 am

Re: Strange error in Cataloger

Post by lehatdi »

yesterday i updated cms version to last, and cataloger version to last.
and i have same trouble here..
lehatdi
New Member
New Member
Posts: 3
Joined: Thu May 02, 2013 10:56 am

Re: Strange error in Cataloger

Post by lehatdi »

sorry, it was line 569 in last version of cataloger.

Code: Select all

		switch ($pagecontent->Type())
Post Reply

Return to “Modules/Add-Ons”