Leraje Posted March 10, 2020 Posted March 10, 2020 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>…</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); ?>
Zeka Posted March 11, 2020 Posted March 11, 2020 @fuma255 You should put your query to the whitelist https://processwire.com/api/ref/wire-input/whitelist/, but I think that there are some other issue in your search logic. Could you show it to us? 1
Leraje Posted March 12, 2020 Author Posted March 12, 2020 Thank you Hero Member!? There is the complete code of my search.php template search00.php
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now