Skip Navigation

[Resolved] Cred Edit – Datepicker only shows 1970 dates

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 3 voices.

Last updated by Evan Seplow 7 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#506332

I am trying to:
DATES on DATEPICKER are entered manually in post-admin. And show up fine on front of website with types code. But CRED EDIT shows dates zeroed out (1970).

What I did to test:
I had problems on a large site, so I created a test site just to see if this problem persists, which it does:

1 - Created vanilla site, latest wordpress/only toolset plugins, using Toolset starter theme.
2 - Added Multi-Datepicker field to Posts (nothing else for this test)
3 - Created a bunch of mock posts.
4 - Created a Cred Edit form, using default wizard cascade.

I visited this URL:
Here is an example post:
hidden link

And after pressing EDIT:
hidden link

I expected to see:
Correct dates in Datepicker...

Instead, I got:
1970 dates.

OTHER INFO:
I understand about Unix and Local times,etc, etc,etc... But this HAS WORKED ON THIS SERVER IN THE PAST. I've been using toolset for years without this problem ON THIS SERVER. So it's most probably something new in the toolset software that is buggy.

I'm happy to share access to this site. It is ONLY set up for your viewing and nothing important is on it.

#506558

Dear Scott,

First we need to know if there is any other compatibility problem in your website, please check this:
deactivate other plugins and switch to wordpress default theme, and test again

Second, I need detail steps to duplicate same problem.
How do you setup the custom "DATES" field?
Is it a custom date field create with types plugin?
And it should be able to store UNIX timestamp value, which is compatible with CRED plugin

#506565

Hi Lui,

It's ONLY toolset plugins running toolset theme. The date picker is toolset and dates are put in manually in the post admin screen. So everything here is either generic WordPress and/or generic toolset --- nothing else.

The field for dates is set up through types and is the only field created.

If you give me the area, all post private access to my test site for you... Please read my original post since all of this was said there as well.

#506600

Please provide a database dump file of your website, also point out the problem page URL and problem date field, I need to duplicate same problem and debugin my localhost.

#507113

Thanks for the details, I am downloading the file, will feedback if there is anything found

#507123

I can see the problem in your test site, and I am trying to duplicate it in my localhost, will feedback if there is anything found

#507124
cred.JPG

I tried these:
1) Export the Types + CRED form setting file from your website, and import them into my localhost
2) Create a "test"post and setup the value of multiple instance date field "datefeild1",
3) Edit the post with CRED form "Edit Post Form" in front-end. it works fine see screenshot: cred.JPG

So it might be a server problem, I checked the "Debug information" you provided, you are using outdated PHP version 5.3.27 and the latest version of WordPress 4.7.3, according to wordpress document:
https://wordpress.org/about/requirements/

I suggest you try with PHP version 7 or greater, and test again.

#507418

Hi Luo,

I am in the process of transferring to a new server with all new software (php, etc). BUT IN THE MEANTIME:

- Can you please confirm that there is specific code in the datepicker that will NOT work with PHP 5.3?

- Can you send me a link to the datepicker's website? I'm not sure which picker you are using and trying to track down where I can get more info about it.

- I need to get this resolved as soon as possible and it will be a while before my php can be upgraded.

THANK YOU.

#507751

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Luo passed this ticket to me and I will take care of this ticket now. Hope this is OK.

- Can you please confirm that there is specific code in the datepicker that will NOT work with PHP 5.3?
==> I do not think this should be issue here but better to test once.

- Can you send me a link to the datepicker's website? I'm not sure which picker you are using and trying to track down where I can get more info about it.
===>
We are using jQuery UI Datepicker 1.11.4

- I need to get this resolved as soon as possible and it will be a while before my php can be upgraded.
====>
sure - if you still have issues I will try to investigate further.

#509885

Ok, this is working on the new server with newer php. So it's obviously an issue of running on older php (or something like that).

Thanks!

The forum ‘Types Community Support’ is closed to new topics and replies.