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

Henjo Hoeksma me at henjohoeksma.nl
Wed Mar 14 14:25:39 CET 2012


Does your repository method ends with ->execute()->toArray() ?

The paginator receives an array instead of a query result as the error
says...


Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Wed, Mar 14, 2012 at 11:30, Roland <most.wanted at gmx.at> wrote:

> 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
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>


More information about the TYPO3-project-typo3v4mvc mailing list