Forum
Perch Search No Results
Hello,
I'm trying to set up search but every query outputs "sorry no results for {query}"
I've tried resetting all templates to default incase i had errors there
I've tried this on the dev & live copy of the site.
I've checked that in the region options section "include in search results" is checked
<?php
$query = perch_get('q');
perch_content_search($query);
?>
I've tried this exact method on a clean install and it works perfectly, is there anything else you need to troubleshoot this?
Can you add debug to the page and let me know what it outputs when you search?
Sure here it is
EDIT - Sorry if you had already read this, i got rid of everything on the page but search so it was easier to read
In the Blog app, under Sections, what do you see?
"Listing Sections" & "Add Section"
And there are no sections,
When you add a section type a name click save, a blank screen so a PHP error
It sounds like your installation has a missing database table. Was this an update, or a fresh install?
An update, I've been running Perch for quite a while.
First time we've encountered this problem, we've only just decided to implement site search.
Is it possible to add the missing table?
Yes - can you run these to SQL statements against your database?
and then
Sure, that's been done,
You can now see the posts section under sections,
When doing a search it now throws this error
Ok, closer. It looks like the update hasn't run for some reason. Some more:
That did it, thank you very much for your help
It's why one of the many reasons I recommend Perch to everyone