Forums › Forums › Search & Filter Pro › error
Tagged: error
- This topic has 13 replies, 2 voices, and was last updated 7 years, 9 months ago by Trevor.
-
Anonymous(Private) February 22, 2017 at 5:21 pm #91998
Hi
I am having a lot of problems with S&F, it was working but now isn’t.
I tried changing settings ajax/not ajax etc etc and am now getting the error:Notice: Trying to get property of non-object in /Users/***/Sites/***/wp-content/plugins/search-filter-pro/includes/class-search-filter-wp-data.php on line 136
There are no javascript errors and I have switched off all other plugins (though there is some js in the theme)
Any ideas on this?Anonymous(Private) February 22, 2017 at 5:45 pm #92013i’m looking at it again.
I can see it is trying to get the URL
http://www.mysite.com/searchpage?_sft_region%5B%5D=bulgaria&_sft_goal%5B%5D=goal-01&_sf_submit=Submit
or in chrome:
http://www.mysite.com/searchpage?_sft_region%5B%5D=bulgaria&_sft_goal%5B%5D=goal-01&_sf_submit=SubmitIf I manually change the URL and take out the [], then the page loads correctly
eg.
http://www.mysite.com/searchpage?_sft_region=belgium&_sft_goal=goal-01Trevor(Private) February 23, 2017 at 12:46 pm #92338OK. That works. You can only have one form per Post Type. That is why we have the setting on the General Settings tab
Choose which kinds of pages S&F will try to do this on
and you correctly tickedTag, Category & Taxonomy Archives
.On the Display Results tab there is also
Enable filtering on Taxonomy Archives
in theTemplate Options
and you have ticked this also, so you should not need 3 forms. You should be able to use the same form on each.Note that the taxonomy/taxonomies that form(s) the page URL (in your case
tool_type
,goal
andregion
) also has to be (a) field(s) in the form for the plugin to be able to auto set it/them (you can hide the field(s) using custom css if you need to, often per page, if the body tag has a unique class you can use).Anonymous(Private) February 23, 2017 at 12:51 pm #92340it was working ok with 3 before.
On my local version I tried as you suggest with 1 form, but this didn’t work.
I will try it on the live version.
I’m not sure what you mean in the last paragraph. Surely the url is made from the fields in the form?
-
AuthorPosts