Hello
My query is for the website, hidden link
I have a Custom Post Type, for which there is a long list of Custom Fields. I also have a View set up for this Custom Post Type.
One of the Custom Fields is a 'Radio' field (in our case the Field is Counties of the UK), with multiple options (in our case, the list of counties in the UK) . In the process of updating that field, I have deleted one of options and when I clicked on "Save Field Group", it automatically removed 6 of the Fields, including the one that I was attempting to update.
Just to also let you know that I ran an update of Toolset-views from version 3.3.5 to version 4.1, just before doing the above changes with the resulting problem. Could this have caused the issue?
Can you please help?
Many thanks
Hi,
Thank you for contacting us and I'd be happy to assist.
I haven't seen any other report about a similar issue and during some random testing with a radio type field on my website, I couldn't reproduce this either.
Have you checked the server's error logs for any errors or warnings? And do you have a backup copy of the website, before the custom fields were removed?
It is highly unlikely to be linked with the Toolset Views update, but, if you could share a clone/snapshot of the website (from before the removal of the fields), we'll be able to investigate this on our server.
( ref: https://toolset.com/faq/provide-supporters-copy-site/ )
Note: I've set your next reply as private.
regards,
Waqar
Hi
Apologies for my late reply.
I have checked the error log file - no issues reported.
I have looked into the matter and would like to explain a little further of what is not working, based on a previous problem and my new observations.
I reckon that the problem lies with with 'Save Field Group' button/function, as every time I click it, it causes the same problem, i.e. removes some of the fields and also removes a considerable number of 'options' from one of the fields (Towns of the UK).
A few months ago, I created this new field ( towns of the UK) using the radio field. Because there are over a 1000 towns, the more efficient way of doing it was for me to exports the settings.xml file from Toolset, add the 1000+ towns to the document and then import the new setting.xml file into Toolset (fortunately I kept a copy of this setting.xml file from that time, which I imported again yesterday and it solved the issue partially - i.e. all the missing fields were restored and the full list of towns was restored as well).
So I had the same issue with the 'Save Field Group' button a few months ago, after I imported the settings.xml files with the 1000+ towns. I reported the issue (using the account of the website owner) and Christian Cox replied with "The debug information says your max_input_vars setting is currrently at 3000. Is it possible to ask your host company to increase that value to 4000? That's the first thing I would check. If this does not solve the problem I'll need to do some deeper investigation.". I followed his advice and this solved the issue with the 'Save Field Group' button not causing issues anymore.
Although I have now restored the missing fields and this full list of towns after importing the settings.xml file yesterday, this 'Save Field Group' button is now causing the same issue again. Can you help? Do you need to see the Debug InformatioN?
Many thanks
Isabel
Thank you for sharing this background information.
As a quick fix, you can test by increasing the "max_input_vars" value in the PHP setting to an even higher value like 8000.
A long term solution will require some restructuring. Saving 1000+ options in the radio type custom field is not a good idea, to begin with.
Have you considered adding a new post type "Towns" and then add those 1000+ towns as individual posts in that? This will allow you to link these towns with the actual post type, using post-relationship.
Thank you very much for your help.
I will explore your suggestion to create the new post-type "Town".