SimpleSearch Pagination - Not working - Outputting raw array

I have a site that I am converting over from Evolution to Revo. I used Bob’s getRevo tool. Now I am just cleaning up and replacing some old things that don’t work on Revo, including ajaxSearch, which I have replaced with SimpleSearch. THe functionality works fine, but on the results page the pagination is not working. It’s just dumping what looks like un-processed data output (array) (I’m not a programmer). I can’t figure out what is missing. I don’t see anything in the documentation about needing any other packages to work. This is what I get where the pagination should be:

Result pages:Array ( [separator] => | [offset] => 0 [text] => 1 [link] => 1 ) | Array ( [separator] => | [offset] => 10 [text] => 2 [link] => search?search=surface&id=437&simplesearch_offset=10 ) | Array ( [separator] => | [offset] => 20 [text] => 3 [link] => search?search=surface&id=437&simplesearch_offset=20 ) | Array ( [separator] => | [offset] => 30 [text] => 4 [link] => search?search=surface&id=437&simplesearch_offset=30 ) | Array ( [separator] => | [offset] => 40 [text] => 5 [link] => search?search=surface&id=437&simplesearch_offset=40 ) | Array ( [separator] => | [offset] => 50 [text] => 6 [link] => search?search=surface&id=437&simplesearch_offset=50 ) | Array ( [separator] => | [offset] => 60 [text] => 7 [link] => search?search=surface&id=437&simplesearch_offset=60 ) | Array ( [separator] => | [offset] => 70 [text] => 8 [link] => search?search=surface&id=437&simplesearch_offset=70 ) 

Not sure why the code is outputting the array content.
Maybe the code can’t find the chunks to render the information.

Do you use a chustom chunk for the property &containerTpl? If so, how is the paging output in this chunk? If not, does the chunk SearchResults have the original content?

Do you use custom chunks for &pageTpl or &currentPageTpl in your SimpleSearch snippet tag? If not, do the chunks PageLink and CurrentPageLink have the original content?

Thank you for the reply. Nothing is custom, just the basic integration of SimpleSearch, everything should be as-is from the install of the package. The results post just fine, the pagination seems to be the only thing not working.

Did you take a look at the chunks (especially PageLink)?
Maybe there already existed a chunk with the same name before you installed SimpleSearch and therefore the output may be weird.


In the code, I can’t see where an array would be output.
For every page, the code just parses the chunk PageLink (or CurrentPageLink) and returns the concatenated result.


What versions of MODX, SimpleSearch and PHP are you currently using?
Is pdoTools installed on your system? What version?

Thank you for mentioning PageLink, it was missing! Not sure why it was not created on install. I uninstalled SimpleSearch and reinstalled and it’s there now and working fine.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.