Skip Navigation

[Resolved] Error while adding multiple-choice fields

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

Problem: When adding options to select fields in the post field group editor, I am redirected to a page containing an AJAX response shown directly in the browser.

Solution: Update to Types 2.2.18

This support ticket is created 7 years 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 10 replies, has 3 voices.

Last updated by Serhii 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#584346

I am trying to create Field "Checkboxes" or "Radio" or "Select", but when I'm clicking on "add option" I see an error that I have not encountered before.

Look at the screenshots please

Scrennshots:
hidden link
hidden link

I create a site locally. I use soft "OpenServer" phph-5.6-x64, Apache-2.4-x64+Ngin
hidden link

#584600

I'm sorry, I don't see an error in any of these screenshots. Is there an error displayed on the screen somewhere else? I see some AJAX responses that are displayed in the browser, but that doesn't really tell me much because some of the contents are rendered as HTML elements. Could you inspect the source of each response, then copy + paste the complete code here to review? It's difficult for me to interpret the JSON response in a rendered HTML page.

#584604

Please, watch this short video record from my PC - hidden link

#584853
preserve-log.png

Okay thanks for the video, that helps. This behavior is definitely not normal. I would like to try these troubleshooting steps first:
1. Try a different browser, like Chrome or Firefox
2. Open your browser's console and check the "Preserve Log" option so that the log contents are stored. Add another field and review the log for any JavaScript errors that may be displayed. Please copy + paste those errors here.
3. Enable server logs to see if any server-side errors are being logged. 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. If any server-side 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 updates you made to wp-config.php.

#584915
2017-11-01_17-36-39.png

1. Did not help (all browsers have the same result)
3. No problem. the file error_log.txt did not appear
2. I see errors in the console when I try to add "Checkboxes":

admin-ajax.php:1 GET hidden link 403 (Forbidden)

admin-ajax.php:1 GET hidden link 403 (Forbidden)

But when I try to add "Radio" or "Select" fields console is clear.

#584948

Okay thanks, I was just testing this out with the latest plugins and WordPress release, and I'm able to replicate the same problem with checkboxes fields. I have escalated this to my 2nd tier support team for further evaluation. Please stand by and I will update you as soon as possible.

#584953

Okay thanks

#584969
error-add-option.png

Hi, I have the same problem and it happend after WordPress 4.8.3 update. If I want to add another option in multiple-choice I get an error.

#584973

Ok @toolset-dave I will keep you posted here.

#585500

Hi, our developers have released a fix for this issue in Types 2.2.18. Please install this update and confirm you are able to add checkboxes and so forth as expected.

#585579

Working! Thanks!