Forums › Forums › Search & Filter Pro › When to many post meta in options, form clears all fields selected
- This topic has 3 replies, 2 voices, and was last updated 10 years, 5 months ago by
Ross.
-
Anonymous(Private) September 18, 2015 at 10:22 pm #25231
Hi,
I have a site with 20000 products (books) and i create a search form for searching some fields in post meta. The only way to search for example author is to auto find all records (options in your plugin) and select them all in order to be searchable through the form, but when i update the search form it losses all post meta search options i have configured (let’s say i configured 6 post meta fields and it looses all except the first one). I figured that it happens when you select more than a number (don’t know the exact number but if i choose 100 it works, on 2000 it is not).
For me it would be easier if i didn’t have to select searchable options and just search everything in the specified field by default, because new books are added every day and that means i will have to update searchable options when ever i add them.
Thank you in advance.Ross Moderator(Private) September 23, 2015 at 8:56 pm #25637Hi there
I’m afraid you can’t add that many options to the form – this is due to PHP/Server limits in most cases – the settings you could try to change on your server are outlined here:
https://support.searchandfilter.com/forums/topic/post-meta-issue/#post-24854
Can I ask, how are you displaying the field? Are you giving your users’ thousands of options to choose from, or are you using a combobox?
Thanks
Anonymous(Private) September 23, 2015 at 11:27 pm #25660Hi,
I already read that post and tried playing with php load limits to no avail, even with extreme values. I do not thing that the problem is php limits. I use multi select with combobox, but i have a lot of post meta fields like author, year_published, translator, pages, condition etc.
I believe that something hangs on the code when there are to many options to save in db and the form is not completely saved, that is why it keeps only the first post meta field and losses everything else (of course that is my feeling and you know what your code does better than me).
As i mentioned in my previous post, it would be easier if i didn’t have to select the searchable options, because new books are added every day and i will have to add searchable options every time in order to include new authors for example in my search.
I will try 2.01 today and let you know if there is any difference.
Than you.Ross Moderator(Private) September 28, 2015 at 11:41 am #26034THanks, I will be adding meta syncing to 2.1 hopefully so this should alleviate the problem.
A user has also discovered the issue to this error which I will refer to you:
https://support.searchandfilter.com/forums/topic/sf-form-not-saving-added-options/#post-25801
The variable that needs changing on the server is
max_input_varsThanks
-
AuthorPosts