uploads: Template stops working after emptying cache

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm
Location: Delft, Netherlands

uploads: Template stops working after emptying cache

Post by mcDavid »

I have one template that stops working after I empty the cache. I have to open the template, save it without changes and then it works again. Only the variables in $entry stop working, the rest of the template is displayed fine.
Does anybody know what could be the problem? As far as I can see there's noting wrong with the template. I have other similar templates that don't have this problem.
I have this problem since I upgraded to 1.11 (.1 as well as .2)

Code: Select all

<!-- Start Upload Summary Template -->

{foreach from=$items item='entry' name='uploads'}
      <div class="singlecol">
        <br> 
        <a class="ceebox" 
      href="{CGSmartImage src=$entry->origfile_url filter_resize='h,500' notag=1 noembed=1 silent=1}"
      title="{$entry->description} ({$entry->author})">
      {CGSmartImage src=$entry->origfile_url filter_croptofit='280,100' noembed=1 silent=1}
    </a>
        <p>{$entry->description} <br>({user name=$entry->author})</p>
      </div>
{/foreach}
<!-- End Upload Summary Template -->
it's called with:

Code: Select all

{cms_module module="Uploads" category='fotoalbum' mode="summary" sortorder="random" count="3" template="ledenindex"}
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: uploads: Template stops working after emptying cache

Post by Jos »

are you running it on php5.3 or 5.2?
I remember having issues with the CGSmartImage call in a News template. Turning over to php5.3 solved it for me.
mcDavid
Power Poster
Power Poster
Posts: 377
Joined: Tue Mar 31, 2009 8:45 pm
Location: Delft, Netherlands

Re: uploads: Template stops working after emptying cache

Post by mcDavid »

I'm on PHP 5.3.

But it's not only the images not showing, the description, author etc. disappear too.

it does however cycle through the loop three times like it should.
Post Reply

Return to “Modules/Add-Ons”