Forums › Forums › Search & Filter Pro › Bug when updating meta values ("Auto Suggest" button)
- This topic has 16 replies, 5 voices, and was last updated 9 years, 3 months ago by
Anonymous.
-
Ross Moderator(Private) February 25, 2015 at 11:21 pm #12413
Just seen this – and I’ve just mailed you the update.
Thanks
Ross Moderator(Private) March 8, 2015 at 3:39 pm #13070Hey again
Sorry for the delays – I tried setting up some tests using huge amounts of meta data but haven’t quite got there with breaking it yet.
To be honest I think that it may not be possible to have 2000 meta values in one field – this could be for a few different reasons though:
There could be a timeout on your server, when processing the fields and saving them – your server could have strict rules such as the amount of time scripts are allowed to run, or the max post size when sending $_POST variables (in the case of 2000 meta keys it may be reasonably large)…
Another alternative is the way the meta keys are being stored – Search & Filter stores all the configuration data for its search form in a single meta key – http://codex.wordpress.org/Function_Reference/add_post_meta – there may be a maximum size to this but I didn’t manage to find out what exactly – basically in MySQL the field type for the meta data is
longtext
– so this may have a maximum size and not actually be able to store all the info you want:*Edit: After a quick look it seems that the longtext can store over a Gb of data – that is WAY more than we would need…
Can you enable PHP error logging on you server, then do a few tests (where the save of meta fields fails) and see if anything comes up in your logs? Can you also enable WP_DEBUG mode and install Debug Bar and see if you can track down any errors?
Thanks
Anonymous(Private) May 20, 2016 at 8:33 pm #46208Hi
I’ve just come across the same problem – I bought Search & Filter today specifically to search by custom field, and the meta values total around 1000 entries.
I’ve tried to set up the form to search by the post meta value I need with manual entry but every time I hit update, the meta value resets to the first on the list. If I try with a value that has fewer entries, it saves without a problem.
If there is a fix for this, I’d be really grateful, as this plugin seems to be the only solution for the type of search filtering my client needs.
Thanks
-
AuthorPosts