0

我安装了索引搜索扩展并正常使用它。它可以显示搜索结果,但如果搜索结果页面上有分页,则那些分页按钮“第 1 页,第 2 页,...下一个”不起作用。当我单击这些分页按钮时,它会转到空白页。

这是我使用索引搜索的模板:

          <!-- Search -->
          <div class="search-wrapper">
            <div class="header-inner-right">
              <ul class="menu-icons-list">
                <li class="menu-icons">
                  <i class="menu-icons-style search search-btn fa fa-search"></i>

                  <form class="search-form" method="post" id="tx_indexedsearch" action="index.php?id=103">
                    <div class="tx-indexedsearch-hidden-fields">
                      <input type="hidden" name="search[_sections]" value="0">
                      <input type="hidden" name="search[_freeIndexUid]" id="tx_indexedsearch_freeIndexUid" value="_">
                      <input type="hidden" name="search[pointer]" id="tx_indexedsearch_pointer" value="0">
                      <input type="hidden" name="search[ext]" value="">
                      <input type="hidden" name="search[stype]" value="1">
                      <input type="hidden" name="search[defOp]" value="0">
                      <input type="hidden" name="search[media]" value="-1">
                      <input type="hidden" name="search[order]" value="rank_flag">
                      <input type="hidden" name="search[group]" value="flat">
                      <input type="hidden" name="search[lang]" value="-1">
                      <input type="hidden" name="search[desc]" value="0">
                      <input type="hidden" name="search[results]" value="30">
                    </div>
                    <div class="input-group animated fadeInDown">
                      <input type="search" name="tx_indexedsearch[sword]" value="" placeholder="Start searching ..." class="search-bar animated fadeIn form-control tx-indexedsearch-searchbox-sword sword">
                      <span class="input-group-btn" style="display: none">
                          <input type="submit" name="tx_indexedsearch_pi2[search][submitButton]" value="Go" class="btn-u">
                      </span>
                    </div>
                  </form>


                </li>
              </ul>
            </div>
          </div>

CSS:

.tx-indexedsearch-rules,
.tx-indexedsearch-searchbox {
  display: none;
}

.tx-indexedsearch-res {
  table {
    tbody {
      tr:nth-child(3) {
        display: none;
      }
    }
  }
}

我的搜索结果页面的 id = 103。当我单击分页按钮时,它会转到第 103 页,内容为空白。

4

1 回答 1

0

空白页通常表示 PHP 中的致命错误。检查您的日志。

于 2017-08-22T12:38:19.730 回答