[SOLVED] Error with BizBuzz Theme on 1.11

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Niko
Forum Members
Forum Members
Posts: 10
Joined: Tue Aug 07, 2012 10:34 pm

[SOLVED] Error with BizBuzz Theme on 1.11

Post by Niko »

Hello, got a possibly Smarty error with the BizBuzz-Theme (BTW: excellent! :) ) on CMSMS v1.11: it breaks at line #26 of the template:

Code: Select all

{capture assign=galleryfolder value=$entry->gallery} ... {/capture}
with a "SmartyCompilerException" in the admin log and an Err 500 on the server. Copied the code into a fresh template and CMSMS states: unexpected "value" attribute. Probably a correlation with the new Smarty version?! Same code works flawlessly in v1.10.3

TIA, Niko
Last edited by Niko on Fri Aug 10, 2012 6:44 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Error with BizBuzz Theme on 1.11

Post by Dr.CSS »

Do you have the Gallery module installed?...
Niko
Forum Members
Forum Members
Posts: 10
Joined: Tue Aug 07, 2012 10:34 pm

Re: Error with BizBuzz Theme on 1.11

Post by Niko »

Yes, Gallery module is installed (v1.6). All BizBuzz dependent modules/plugins as well as templates are installed and checked to work with 1.11. Set all files and folders in /tmp, /uploads and /modules to 777 recursively and cleaned several small BizBuzzV2 glitches as mentioned in the forums and on Goran's site and even some minor file-mismatches I found during set-up on another account (the one that runs fine under 1.10.3).
Jean le Chauve

Re: Error with BizBuzz Theme on 1.11

Post by Jean le Chauve »

For 1.11
{capture assign=galleryfolder value=$entry->gallery} ... {/capture}
become
{capture assign=galleryfolder} ... {/capture} and all work
Beware with SuperSizer which is in templates ; You can easily replace it with CGSmartImage (but : http://dev.cmsmadesimple.org/bug/view/8196).
You must rename all the name of templates without spaces
e.g. : BizBuzzV2 : Default
become
BizBuzzV2_Default
Niko
Forum Members
Forum Members
Posts: 10
Joined: Tue Aug 07, 2012 10:34 pm

Re: Error with BizBuzz Theme on 1.11

Post by Niko »

Jean le Chauve wrote:For 1.11
{capture assign=galleryfolder value=$entry->gallery} ... {/capture}
become
{capture assign=galleryfolder} ... {/capture} and all work
Ok, that was the way I tested it already and the template error is gone but still no images in the gallery slider (subfolder and template are applied). Will rework it later this evening.
Jean le Chauve wrote:Beware with SuperSizer which is in templates ; You can easily replace it with CGSmartImage (but : http://dev.cmsmadesimple.org/bug/view/8196).
You must rename all the name of templates without spaces
Thanks, will check that, too. I already renamed all Templates (Layout, Menu, CSS) without spaces and special characters.

Thanks a lot, I'll drop a line when it's up and running - or exactly the opposite... ;)
Niko
Forum Members
Forum Members
Posts: 10
Joined: Tue Aug 07, 2012 10:34 pm

Re: Error with BizBuzz Theme on 1.11

Post by Niko »

Jean le Chauve wrote:You can easily replace it with CGSmartImage
Hm, I can't figure out how to align the Gallery template code to pass the right path to CGSmartImage. I changed this:

Code: Select all

{supersizer path=$image->file|rawurldecode width_attr=950 height_attr=345 width=950 height=345 crop="center,center" alt=$image->titlename title=$image->comment}
into this

Code: Select all

{CGSmartImage src=$image->file|rawurldecode filter_resizetofit='950,245' alt=$image->titlename title=$image->comment}
It produces no error but takes a long time to load and captures something completely different (it's the BizBuzz logo?!). As you might see I'm really not a code geek... ;)
Jean le Chauve

Re: Error with BizBuzz Theme on 1.11

Post by Jean le Chauve »

Niko wrote:but still no images in the gallery slider (subfolder and template are applied). Will rework it later this evening.
Check the value of {$galleryfolder} (original : Slider)
My slider template :

Code: Select all

<div id="slider">
{foreach from=$images item=image}
{if !empty($image->fields.link.value)}      
<a href="{$image->fields.link.value}">{cms_module module="CGSmartImage" src=$image->file|rawurldecode alias='slider' alt=$image->titlename title=$image->comment}</a>{else}
{cms_module module="CGSmartImage" src=$image->file|rawurldecode alias='slider' alt=$image->titlename title=$image->comment}{/if}
{/foreach}     
</div>
Niko
Forum Members
Forum Members
Posts: 10
Joined: Tue Aug 07, 2012 10:34 pm

[solved] Re: Error with BizBuzz Theme on 1.11

Post by Niko »

Worked it out: I missed the specification of the Gallery folder in the page's header options (*Ouch!*) - template's code is ok.

I adopt your "{cms_module module="CGSmartImage" ... } declaration instead of the "{CGSmartImage ... } in the original template.

BizBuzz is running fine now under CMSMS v1.11 (as far as I can tell). Thanks a lot! :)
Post Reply

Return to “Modules/Add-Ons”