Navigation überspringen

[Gelöst] Checkbox field is not storing value

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
A Types checkbox field is not saving its value when the post is saved.

Solution:
This was a known issue in certain circumstances with Types 2.3.2, fixed in Types 2.3.3

This support ticket is created vor 6 Jahren, 5 Monaten. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von entwicklung vor 6 Jahren, 5 Monaten.

Assistiert von: Nigel.

Author
Artikel
#1084493
Bildschirmfoto 2018-08-16 um 10.40.19.png

A checkbox, set up with types post fields for a custom post type, is not storing its value on post save.

I tested it with no other plugins activated and twenty seventeen theme in our local development environment. I also tried creating a new checkbox field, but the problem persists.
Changing the fields value with wp-cli changed it, but the next post save overwrites it again with zero.

Settings for the field are attached as a screenshot.

Versions:
Toolset Types: 2.3.2
Wordpress 4.9.8

#1084643

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hi there

I just tested this myself with the same version (Types 2.3.3) and didn't find any problems, the checkbox saved correctly with the same settings you have.

If you tested it on a vanilla install then it may be something server related.

(I don't see any debug info to know your server set up.)

I suggest you check your PHP error logs to see if there are any revealing messages.

If not you could try the same in a different server environment to see if that confirms that that is the issue.

Let me know what you find.

#1085480

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Sorry, I just re-read this to double-check something, and note that you were using Types 2.3.2 and I was testing with Types 2.3.3 (which was released yesterday).

That updated included a fix for an issue where checkbox values were not saving in the case of parent posts that had a connected child post, perhaps that matches your scenario.

In any case, can you update to Types 2.3.3 and then test again?

#1085482

Hi,
Thanks for your reply. Indeed 2.3.3 fixed the problem.