Jump to content

Pagination error on search results


Leraje
 Share

Recommended Posts

https://www.xxxxxx.com/search/?q=people
When I search for "people", there are 3 pages of results.


when open "https://www.xxxxxx.com/search/page2"

Server Error
We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later.
error 500 

Is there something wrong with Template: Search settings and how to fix it?
allow page numbers has be Selected!

But in Template: blog test it's OK!


<?php      
$options = array(
  'numPageLinks' => 3,
  'listClass' => 'pagination float--right',
  'listMarkup' => "<ul class='pagination float--right'>{out}</ul>",
  'itemMarkup' => "<li class='{class}'>{out}</li>",
  'linkMarkup' => "<a href='{url}'>{out}</a>",

  'currentItemClass' => '',
  'currentLinkMarkup' => "<li class='active'><span>{out}</span></li>",
 // 'separatorItemMarkup' => '',  
  'separatorItemLabel' => '<span>&hellip;</span>',
  'separatorItemClass' => '',

  'nextItemLabel' => '<i class="fa fa-long-arrow-right"></i>',
  'previousItemLabel' => '<i class="fa fa-long-arrow-left"></i>',
  'nextItemClass' => '', 
  'previousItemClass' => '',
  'lastItemClass' => '',
  'lastNumberItemClass' => '',
  'firstItemClass' => '',  
  'firstNumberItemClass' => '', 
  'listAriaLabel' => '',   
  'itemAriaLabel' => '',  
  'currentItemAriaLabel' => '',    
);       

  echo $matches->renderPager($options); 
?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...