Hi, I've been building a site and using the sitesearch plugin from the start. It's been working beautifully, but for some reason now it has simply stopped working. I get this error below. My site search is part of a "search page" layout and then I have written some text and things as a Static Page. The page works fine, but when a search query is attached to the URL, it breaks. I get this error:
Undefined index: title /var/www/vhosts/ccdevhub.com/octest.ccdevhub.com/plugins/offline/sitesearch/classes/providers/RainlabPagesResultsProvider.php line 30
if ( ! $this->isInstalledAndEnabled()) {
return $this;
}
foreach ($this->pages() as $page) {
// Make this result more relevant, if the query is found in the title
// line 30 // $relevance = $this->containsQuery($page->viewBag['title']) ? 2 : 1;
$result = new Result($this->query, $relevance);
$result->title = $page->viewBag['title'];
$result->text = $page->parsedMarkup;
$result->url = $this->getUrl($page);
Last updated