Forums › Forums › Search & Filter Pro › Error lines on the results page…
Tagged: search form
- This topic has 3 replies, 2 voices, and was last updated 10 years, 1 month ago by Ross.
-
Anonymous(Private) September 3, 2014 at 3:35 pm #4233
Hi Ross!
Thanks for creating such a comprehensive search and filter plugin!
I have purchased your plugin a few days ago, installed and activated it and so far everything worked just fine. But when I created my first form and tested it I ran into an issue.
I have created 5 fields in my search form (search, category, author, date and submit button) and using a custom template (search.php). When I specify and select all of the fields the search results display as they should do. But when I specify only let’s say a keyword, category and author, but leaving the date range unspecified in the results page there are some error lines appear just above the results. They look like that:Notice: Undefined offset: 0 in /Users/timurshax/Desktop/Local Sites/wordpress/wp-content/themes/valenti/library/core.php on line 2385
Notice: Trying to get property of non-object in /Users/timurshax/Desktop/Local Sites/wordpress/wp-content/themes/valenti/library/core.php on line 2385
It looks like if some fields are in the search form but are not being specified then those lines are displayed. If everything is specified and selected everything displays as normal.
As well as that, if I specify everything but don’t type a search term it just displays a blank results page. I am just wondering what if users will just want to choose the fields other than a search term (if they don’t have any term in mind) as well as specifying everything apart of the date range or the category and then seeing those error lines mentioned above in the results page. I just have no idea what might be causing these issues.
I really hope you can help me with this issue as soon as you can as I need to get back to my client tomorrow morning.
Thanks in advance for your help!
Best,
TimurRoss Moderator(Private) September 4, 2014 at 1:14 pm #4263Hey Timur
Can you send me your login details? Those errors are being generate from your theme and not the plugin, but I guess its a combination of the two together so would be useful to take a direct look..
If the problem is in the theme, then I’m afraid we won’t be able to get to the bottom of it very quickly as I am completely unfamiliar with the codebase – but I will try!
Thanks
Anonymous(Private) September 4, 2014 at 4:46 pm #4289Hi Ross!
Thanks for getting back to me.
I am developing locally so unable really to provide login details at the moment, however I have resolved the issue with the error lines appearing on the results page. The problem was in checking the “pages” and “events” options for pulling results from these content types and actually not having a corresponding search field for these content types. So it was trying to pull content where there wasn’t corresponding data as I only created search fields for posts types.
I am still wondering about the necessity of inputting a search term in order to have results displayed. So my question is is it just the way the search form works in order to function properly and display results? And is there any way to configure the search form in a way so while a user hasn’t entered a search term but had chosen the other fields like category and date range the results will still be displayed? For example, if I want to search through reviews categorised “ballet” and choosing a date range of one month but not entering any search term, just to find reviews categorised “ballet” from 01/09/2014 to 01/10/2014 and just having all of the related reviews displayed on the results page with the date range mentioned above.
Hope that makes sense!Thanks for you help, Ross!
I am really startling to love your plugin, its capabilities and ease of use.Best,
TimurRoss Moderator(Private) November 10, 2014 at 12:41 pm #7320Hey Timur
Just going through old open tickets and seen this – did you managed to get it resolved?
Thanks
-
AuthorPosts