Skip to content Skip to sidebar

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

Problem:
If you're experiencing issues where translations show as 100% complete but are not being saved or created, and you encounter PHP warnings related to 'Attempt to read property "post_date" on null', this might be due to missing post dates in the original content or translations.
Solution:
We recommend running the troubleshooting options available at WPML > Support. This approach has resolved similar issues in the past by ensuring that all necessary data is correctly set up and any inconsistencies are addressed.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 5 replies, has 0 voices.

Last updated by Andreas W. 8 months ago.

Assisted by: Andreas W..

Author Posts
April 15, 2025 at 5:26 pm #16935690

taydeA

Hi Andreas,

Could you please check the issue with the English translations? The issue is translations are showing that they are 100% complete but they are not being saved, neither the translated page is being created.

Thank you,

Tayde

April 15, 2025 at 5:32 pm #16935703

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

It looks like there is an issue with completing the review for the page "Videos".

I can see this error on the console:
Uncaught (in promise) TypeError: Failed to construct 'URL': Invalid URL

This usually happens, if the job and the review came from an earlier version of the website that likely was running on a different server. Was this site migrated lately?

I was able to fix this issue now by switching the translation method to "WordPress Editor", saving the translation, then changing the method back to "WPML Translation Editor" and completing the translation.

April 16, 2025 at 2:09 pm #16939371

taydeA

Hi Andreas,

I’m getting this error:

[16-Apr-2025 10:54:13 UTC] PHP Warning: Attempt to read property "post_date" on null in /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php on line 182
[16-Apr-2025 10:54:13 UTC] PHP Warning: Attempt to read property "post_date_gmt" on null in /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php on line 183
[16-Apr-2025 10:55:45 UTC] PHP Warning: Attempt to read property "post_date" on null in /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php on line 182
[16-Apr-2025 10:55:45 UTC] PHP Warning: Attempt to read property "post_date_gmt" on null in /var/www/wp-content/plugins/sitepress-multilingual-cms/inc/translation-jobs/helpers/wpml-save-translation-data-action.class.php on line 183

April 16, 2025 at 2:58 pm #16939738

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

The errors indicate that likely an original content or translation is missing a post date.

I am not sure at this point which content the errors refer to, as there are not any translation jobs in progress on your site.

When exactly did this error occur?

Are you trying to translate a specific age or post? If so, which one?

April 16, 2025 at 3:06 pm #16939751

taydeA

Yes the error shows its missing post date, we are first trying to translate homepage which is giving this error.

April 16, 2025 at 9:18 pm #16941298

Andreas W.
WPML Supporter since 12/2018

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

Timezone: America/Lima (GMT-05:00)

It seems running the troubleshooting options at WPML > Support solved this issue.