Skip Navigation

[Resolved] Can't set the value of a custom field when adding a new page

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#924046

I have a custom post type called Person. It contains a custom field named "Person Type." Person Type is a pull-down menu with five possible values: student, faculty, alumni, guest, and past faculty.

When I add a new Person and try to set the Person Type to *any* of the values, WordPress doesn't seem to save it. The pull-down menu value says "--Not Set--".

This is best illustrated in the following screencast:

hidden link

The test post I'm using is here:

hidden link

The Field Group definition that contains the Person Type is here:

hidden link

Can someone take a look? This is very puzzling!

#924220

This is actually much more serious than I thought. I can't save *any* of the custom fields for this post type. Does it have something to do with yesterday's plugin update?

#924241

Hi, can you try the following troubleshooting steps first?
- Clear your browser cache, log out, and log back in. Retest. Check the browser console for any JavaScript errors.
- Temporarily deactivate all plugins except Types, and activate a default theme like Twenty Seventeen. Test again.
- If the problem is now resolved, that indicates a conflict somewhere. Reactivate your theme and plugins one by one until the problem returns.
- If the problem was not resolved, check your server's MaxInputVars setting. In your debug info, I'm seeing it set to 1000, which may be too low for your site. Ask your host to increase that to 5000.

Let me know the results of these tests and we can go from there.

#924316

Christian,

Thanks for your quick response. I followed the first instruction you mentioned: cleared my browser cache, logged out, and logged back in. Retested it and the same thing happened. I checked the browser console for any JavaScript errors, and there were none.

Then I stopped, in part because my client's site is launching tomorrow, and I need to devote time to developing rather than troubleshooting. Following my hunch that the recent upgrade broke things, I reverted to the previous versions of the Types and Views plugins on a test copy of the site that lives on my laptop. Presto! Functionality was restored.

So, I don't need your help right now, but you may need mine. I'll be available beginning tomorrow afternoon.

Sorry I'm bailing for the moment. Note that I chose the option "I still need help" in my response as a way to keep this issue open so we don't walk away from it. I can't be the only person with this problem!

#924378

I understand. Let me know when would be a good time to log in and create a clone of the site to try to track down the problem. I will be unavailable tomorrow and will return Sunday.