Skip Navigation

[Waiting for user feedback] years_from_now does not work as expected in WPML translated pages

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.

This topic contains 23 replies, has 1 voice.

Last updated by Christopher Amirian 1 day, 2 hours ago.

Assisted by: Christopher Amirian.

Author
Posts
#2822796

I created two dog walkers each with birth dates 2, 3, 4, 5 and 6 september 2015.

I created an EN and ESP page and view filtering years_from_today(-10), so that in the next coming days we can have a look at the pages to see if the same problem arrises.

I set view cache to 'off'

Today, 2 sept, both pages are ok.

I will look at the pages every day at 12:05.

#2822807

Minesh
Supporter

Languages: English (English )

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

Ok great - please have eye on that and let see how it goes.

#2823016

on the sandox today all is OK: both languages show Sept 3rd
on my site notOK: EN shows Sept 3rd, the other languages show Sept 2nd.

I am starting to wonder if the translation has something to do with it.....µ

Same test tomorrow, same time.

#2823226

Minesh
Supporter

Languages: English (English )

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

Ok fine - let me know how it goes.

#2823227

today (Sept 4), both sandbox and my site are ok.
I did not change anything, so why my site is ok, is a question.
Same test tomorrow, thank you for your patience.

#2823467

Minesh
Supporter

Languages: English (English )

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

Glad to know that, please keep me updated with your findings.

#2823635

today 6 sept
sandbox OK
my test computer shows EN page OK, and 2nd Sept for the other languages, so not OK.

indeed, i did not use this computer since Sept 2nd. It is as if the page is still cached from the last time i used it.

After that I cleared browser cache again,and it still shows Sept 2nd in all three other languages.

I do not see a pattern, do you?

There must be a difference between the sandbox and my site, but i do not see it. Can your expert eye look at any differences please?

I suspect WPML differences but I do not see any....

#2823939

today Sept 8
sandbox OK
my computer OK in all languages
my test computer @ a friend EN, NL and FR OK; German not OK
phone: EN not ok (shows yesterday); German not OK (shows Sept 2nd); Dutch and French OK

The fact that EN on my phone shows the wrong date is a first; until now EN has always been correct.

I checked the query filter on the sandbox compared to my site, but I do not see any difference.

I am out of my depth here, I hope you still have ideas?

thanks
Hein

#2823942

Christopher Amirian
Supporter

Languages: English (English )

Hi Hein,

Christopher here. Indeed, it is very hard to know what might be the problem cause, as the exact setup on a clean installation works ok.

We have WPML also installed on the clean installation, and the translation is there:

hidden link

So if the problem is the translation, then it should show itself on the clean installation too.

I wonder if you could spend more time on the clean installation to see if you can find a date difference between the translation and the original page?

To make sure we're on the same page, when there is no way to replicate the issue on a clean installation, the issue will not be taken into consideration by the dev team.

One other point that I suggest is that you try to test your website on a minimal installation this way:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except:
. Toolset Types
. Toolset Blocks/Views
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Thanks.