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.
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.
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.
[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