[TYPO3-mvc] fluid paginate widget :: error: "passed argument must implement Tx_Extbase_Persistence_QueryResultInterface"

Roland most.wanted at gmx.at
Wed Mar 14 11:30:29 CET 2012


hi everybody,

i get the following error message when i try to use the paginate fluid 
viewhelper:

--- error ---

PHP Catchable Fatal Error: Argument 1 passed to 
Tx_Fluid_ViewHelpers_Widget_PaginateViewHelper::render() must implement 
interface Tx_Extbase_Persistence_QueryResultInterface, array given in 
/var/www/gebropharma/typo3/sysext/fluid/Classes/ViewHelpers/Widget/PaginateViewHelper.php 
line 76

--- /error ---

this is my fluid template (Properties.html):

--- fluid ---

<h2>{album.title} <span><f:count subject="{album.bilder}" /></span></h2>
<div id="intro"><p>{album.text}</p></div>
<div id="images">
   <f:widget.paginate objects="{album.bilder}" as="paginatedBilder" 
configuration="{itemsPerPage: 4, insertAbove: 1, insertBelow: 1}">
     <f:for each="{paginatedBilder}" as="bild">
       <dl>
         <dt>{bild.title}</dt>
         <dd class="image"><f:image src="{bild.filePath}{bild.fileName}" 
alt="" maxWidth="206" maxHeight="136" /></dd>
         <dd class="enlarge"><a 
href="{bild.filePath}{bild.fileName}">Bild vergrößern</a></dd>
         <dd class="download"><a href="{bild.filePath}{bild.fileName}" 
target="_blank">Bild downloaden</a></dd>
       </dl>			
     </f:for>		
   </f:widget.paginate>
</div>

--- /fluid ---

maybe important to add: i use EXT:extbase_dam and the property "bilder" 
(englisch: images) represent dam records.

everything works - except the pagination.

any tipps what possibly could be the problem here?

kind regards.

roland


More information about the TYPO3-project-typo3v4mvc mailing list