SiteSearch

Adds global search capabilities to October CMS

Back to SiteSearch Support

nesrine.boujneh62328
nesrine.boujneh62328

I get this error: Undefined index: title Call to a member function slice() on null plugins\offline\sitesearch\components\SearchResults.php line 212 *

  • @return ResultCollection */ protected function getPaginatorSlice($results) {

    return $results->slice(($this->pageNumber) * $this->resultsPerPage, $this->resultsPerPage);

    } }

OFFLINE
OFFLINE

Can you add this line here and see if this fixes things for you?

https://github.com/OFFLINE-GmbH/oc-site-search-plugin/blob/c0ad626dce33f022911222af2b5d36d475454596/classes/SearchService.php#L77

$modified = Event::fire('offline.sitesearch.results', $resultsCollection);
// Add this line right below
$modified = array_filter($modified);
nesrine.boujneh62328

1-3 of 3