Forum
Warning: stripslashes()
Hey hey,
getting this weird error on my search results page. googled it and don't have a clue what it means still.
Warning: stripslashes() expects parameter 1 to be string, array given in /home/kieranfi/public_html/perch/core/apps/content/runtime.php on line 116
See the live example of the error:
Can I see your diagnostics?
Hello Drew
I didn't know about this, I need to update Perch. I will try that and see if it fixes it this afternoon, it's only very slightly out of date.
Here is my report for now. Hows does it look?
Can you show me how you're calling
perch_content_search()
?This is in my search.php
The search works fine btw, it's just that random error.
You need to check the documentation https://docs.grabaperch.com/docs/page-functions/
Try this instead:
This removes the error and my search results.
https://kieranhunter.co.uk/search.php?s=chicken
Have you checked your
search_title.html
template?I changed that file to the 'search-result.html' template, and it works!
How was this even working before, Im so confused.
Thank you! :)
You were searching twice - once with invalid arguments (hence the error) and once with the defaults (hence the results).