We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36932
    • 39 Posts
    Hello everyone,

    today I updated getPage from 1.1.0-pl to 1.2.0-pl on my page (revo 2.1.3-pl).
    Before the update everything worked very good, now I have a big problem with the pagination. At the beginning of the output of my getPage-Call, there's a raw output of the pagination controls (only if there are more items than the limit per page). It looks like this:
    array(3) {
      ["pages"]=>
      string(377) "<li><a class="active" href="index.php?id=2&page=1">1</a></li> 
    <li><a href="index.php?id=2&page=2">2</a></li> 
    <li><a href="index.php?id=2&page=3">3</a></li> 
    <li><a href="index.php?id=2&page=4">4</a></li>"
      ["next"]=>
      string(119) "<li class="control"><a class="next pagecontrol"  href="index.php?id=2&page=2">Nächste Seite</a></li>"
      ["last"]=>
      string(91) "<li class="control"><a href="index.php?id=2&page=4">Last</a></li>"
    }
    

    After the array, everything is shown correctly, even the pagination controls.

    This is how calling page looks like:
    <ul class="uebersicht clearfix">
    [[!getPage@?
       &elementClass=`modSnippet`
       &element=`getResources`
     
       &parents=`[[*id]]`
       &limit=`2`
       &pageVarKey=`page`
       &where=`{"template:=":2}`
    
       &sortby=`createdon`
       &sortdir=`DESC`
    
       &includeContent=`1`
       &includeTVs=`1`
       &processTVs=`1`
       &tvPrefix=``
    
       &tpl=`objektThumbTpl`
    ]]
    </ul>
    
    <div class="paging">
    <ul class="pageList">
      [[!+page.nav]]
    </ul>
    </div>
    


    I don't see, why this doesn't work, especially because everything was ok before this. Does anybody else have similiar problems? Did I stumble upon a bug? Did something break while updating?

    I'd be pretty happy, if someone of you can help me.

    With kind regards,
    Marc [ed. note: boundaryfunctions last edited this post 15 years, 1 month ago.]
      • 22303 MODX Staff
      • 10,725 Posts
      It's a bug, I left some debugging output in the code inadvertently. Update coming in a few...
        • 36932
        • 39 Posts
        Thanks a lot for answering so fast, that saves me a bunch of time!
        I already looked through the code, but didn't find the point, where it is written to the output. Do you maybe have a hint for me?
          • 22303 MODX Staff
          • 10,725 Posts
          And 1.2.1-pl is available; now without debugging statements. wink
            • 36932
            • 39 Posts
            Thanks, this is what I would call fast reaction smiley
            Everything works as expected again and pageNavOuterTpl is a nice addition!