Page 1 of 1

[SOLVED] Error with BizBuzz Theme on 1.11

Posted: Tue Aug 07, 2012 10:57 pm
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

Re: Error with BizBuzz Theme on 1.11

Posted: Tue Aug 07, 2012 11:08 pm
by Dr.CSS
Do you have the Gallery module installed?...

Re: Error with BizBuzz Theme on 1.11

Posted: Tue Aug 07, 2012 11:21 pm
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).

Re: Error with BizBuzz Theme on 1.11

Posted: Wed Aug 08, 2012 12:56 am
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

Re: Error with BizBuzz Theme on 1.11

Posted: Wed Aug 08, 2012 8:55 am
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... ;)

Re: Error with BizBuzz Theme on 1.11

Posted: Wed Aug 08, 2012 8:00 pm
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... ;)

Re: Error with BizBuzz Theme on 1.11

Posted: Thu Aug 09, 2012 5:26 am
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>

[solved] Re: Error with BizBuzz Theme on 1.11

Posted: Fri Aug 10, 2012 6:40 pm
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! :)