Skip Navigation

[Resolved] Date not saving to database

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
- 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)

This topic contains 2 replies, has 2 voices.

Last updated by brianC-11 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#947863

I am trying to:
Use the date selector field and it doesn't always save the date selected to database.
Link to a page where the issue can be seen:
It is resolved by reverting plugin to free version so you can see it on the live site
I expected to see:
Date saved to database
Instead, I got:
When we choose a date and click save, the value is not saved to the database. When i go to edit custom field and click delete date field we get this error:

Fatal error: Uncaught exception 'InvalidArgumentException' in /home/exploration/public_html/dev/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/query/condition/type.php:28 Stack trace: #0 /home/exploration/public_html/dev/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/query/condition_factory.php(90): Toolset_Relationship_Query_Condition_Type->__construct('', Object(Toolset_Relationship_Role_Parent)) #1 /home/exploration/public_html/dev/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/query/relationship_query_v2.php(355): Toolset_Relationship_Query_Condition_Factory->has_type('', Object(Toolset_Relationship_Role_Parent)) #2 /home/exploration/public_html/dev/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/query/relationship_query_v2.php(350): Toolset_Relationship_Query_V2->has_type('', Object(Toolset_Relationship_Role_Parent)) #3 /home/exploration/public_html/dev/wp-content/plugins/types/application/models/post_ty in /home/exploration/public_html/dev/wp-content/plugins/types/vendor/toolset/toolset-common/inc/m2m/relationship/query/condition/type.php on line 28

When we revert back to the free version it works perfectly.

#948174

Nigel
Supporter

Languages: English (English ) Spanish (Español )

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

Hi there

Can I get more info about where this occurs to see if I can reproduce the problem.

On the backend post edit screen I can update and clear date fields without any problems on a local test site.

Does this issue occur on the front end or the back end?

If on a front-end form this is with forms to publish and to edit posts, or it is a relationship form?

If I can't reproduce the problem based upon your description, I may need to get a copy of your site, but I'll wait to get further details from you first.

Please include your site debug info in your reply (hidden link).

#954565

a