Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to get property of non-object? #10

Open
annaheimann opened this issue Dec 23, 2017 · 1 comment
Open

Trying to get property of non-object? #10

annaheimann opened this issue Dec 23, 2017 · 1 comment

Comments

@annaheimann
Copy link

I get an error in WeightedSearch_EntriesService.php line 61.
Can you help me with this?

screenshot_craft

@oyvind-stenhaug
Copy link
Contributor

Hi! Sorry about the late reply, I'm on vacation.

Perhaps the plugin is called with a section handle that doesn't exist? E.g. if you're calling substringSearch from a template, I would check what's being sent as a second argument.

The example template code in the readme is only an example, and assumes that there exist sections with handles articles and news. For your site you might want to specify other handles, or possibly just do {% set results = craft.weightedSearch.substringSearch(query) %} to search all sections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants