I hope putting this here is ok as I am having a problem with using Wayfinder and getResources
When I use a Gallery call in a chunk that is being called by wayfinder or getresources i get the following error:
Notice: Uninitialized string offset: 0 in C:\wamp\www\kanemi.info\core\cache\includes\elements\modsnippet\5.include.cache.php on line 106
Warning: Invalid argument supplied for foreach() in C:\wamp\www\kanemi.info\core\cache\includes\elements\modsnippet\5.include.cache.php on line 106
Fatal error: Cannot use string offset as an array in C:\wamp\www\kanemi.info\core\cache\includes\elements\modsnippet\5.include.cache.php on line 165
I have read through the docs and also done some searching to see if there is a way to call a snippent inside a snippet.
my wayfinder call:
[[Wayfinder? &startId=`15` &outerTpl=`outerTpl_gal` &rowTpl=`rowTpl_gal`]]
The chunk that contains the gallery call (&rowTpl=`rowTpl_gal`) :
<div class="ap_collections_thumbs_container">
<div class="ap_collections_title_text">
<span>[[+name]]</span>
</div>
[[!Gallery?
&album=`[[+id]]`
&limit=`5`
&thumbWidth=`165`
&thumbHeight=`165`
&thumbTpl=`gallery_thumbs_tpl`
]]
</div> <!-- ap_collections_thumbs_container END -->
when i view the page to see the output it gives me the error above. I also get this problem when using getResources to use a template chunk that contains a gallery call
can anyone give me a clue to where i am going wrong.
Thanks
Tim