Skip Navigation

[Resolved] Borrado de campos

This thread is resolved. Here is a description of the problem and solution.

Problem:
A Select custom field had 151 options. When a new option was added, the most recently created options were deleted.

Solution:
The PHP "max_input_vars" limit is likely cut off the form values on save, dropping the newest options. Check "PHP max input variables" under "Tools > Site Health > Info > Server" (default 1000). Ask the host to raise it, for example to 5000. Then re-add the missing options in "Toolset > Custom Fields" and save.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by - 4 days, 14 hours ago.

Assisted by: Christopher Amirian.

Author
Posts
#2919011

Tell us what you are trying to do?

Estoy intentando en un campo personalizado del tipo select ya creado añadir más opciones

Is there any documentation that you are following?

No, es algo bastante sencillo, le doy agregar opción

Is there a similar example that we can see?

What is the link to your site?

hidden link

El problema suele venir cuando hay muchas opciones dentro del campo select, en este caso tendría 151 opciones y al crear una nueva se me han borrado las últimas creadas. Si me podéis ayudar os lo agradezco. Un saludo!!

#2919029

Christopher Amirian
Supporter

Languages: English (English )

Hello,

Please note that we can only provide support in English, so I am replying in English.

The options are most likely lost because of a PHP setting on your server called max_input_vars. It limits how many values a form can send when it is saved. Each select option sends two values, and every other field in the same field group sends more. With 151 options, the field group can go over the limit, and PHP drops the values at the end, which are the newest options.

Please follow the steps below:

1. Go to Tools > Site Health > Info and open the Server section.

2. Check the value of "PHP max input variables". The default is 1000.

3. Ask your hosting provider to raise max_input_vars, for example to 5000.

4. When it is raised, open the field group in Toolset > Custom Fields, add the missing options again, and save.

5. Reload the field group and check that all the options are still there.

If the issue persists, I'd appreciate it if you set the next reply as private and provide the login information.

Thanks.