Skip Navigation

[Resolved] Adding custom fields to post field group within a relationship

This support ticket is created 5 years, 9 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 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1231646

LCR

I am trying to edit custom fields to an existing relationship.

I got to Relationships->Edit the existing one and click on "Edit Fields". On the edit page, when I add a field and click save, it disappears without giving an error message.

#1231886

Hello can you try these troubleshooting steps first?
- Temporarily deactivate all plugins except Types and activate a default theme like Twenty Nineteen.
- Clear your browser cache and test again.
- If the problem is resolved, reactivate your theme and other plugins one by one until the problem returns.
- If the problem was not resolved, please open the browser console and test once more. If any JavaScript errors are logged, please copy+paste them in your next reply.

#1235775

LCR

Hi Christian, we are still having this problem.

Deactivated plugins, activated theme, cleared cache, etc.

I don't get any errors in the console.

We really need to add fields to an existing relationship form. Even saving will sometimes remove other fields.

#1235781

I'll be glad to take a closer look. Please provide login credentials in the private reply fields here and let me know which Relationship you are describing.

#1235827

Okay let's try a couple of things:
1. Ask your hosting provider to increase your MaxInputVars setting from 1000 to 3000 if possible. When a page in wp-admin with many input fields doesn't update correctly, this is a top suspect.
2. Ask your hosting provider if any server-side caching is going on, like object caching or memcached. If so, see if you can purge that cache.

If neither of those seems to resolve the problem, turn on server logs to see if any errors are being generated. If you're not familiar with server logs I can show you how to enable them temporarily. Go in your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);

Then add these lines, just before it says 'stop editing here':

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Try to add another field in this field group editor. If any errors are thrown, this will create an error_log.txt file in your site's root directory. Please send me its contents. Once that is done, you can revert the changes you made to wp-config.php and delete the log file.