Hello,
Thanks for the detailed explanation.
First, I suggest to check if the update was complete. Maybe something broke while updating and there are some missing files, so the function is actually not there.
Can you please check in your site if the file wp-content/plugins/sitepress-multilingual-cms/inc/wpml-private-actions-tm.php exists and in line 49 it has the following:
function wpml_tm_add_translation_job( $rid, $translator_id, $translation_package, $batch_options, $sendFrom = null ) {
$helper = new WPML_TM_Action_Helper();
return $helper->add_translation_job( $rid, $translator_id, $translation_package, $batch_options, $sendFrom );
}
If not, please reinstall WPML and see if the issue is solved.
If the code is right, I think the issue may be related with the front end submission.
WPML's "Translate Everything" feature attempts to create translation jobs on the frontend when new content is created (e.g., via your form submission), but the necessary function wpml_tm_add_translation_job() is only loaded by WPML on the backend (admin dashboard).
Do you have a staging environment? Is it possible for you to do the following tests in a development environment to confirm this second hypothesis?
1.
If you go to WPML -> Translation Management and disable "Translate Everything" the issue is solved?
2.
If you disable the Automator the issue is gone? The CPT is created and translated after submitting the form?
3.
In wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php before line 1349 add:
if ( ! function_exists( 'wpml_tm_add_translation_job' ) ) {
require_once WPML_TM_PATH . '/inc/wpml-private-actions-tm.php';
}
Let me know how this goes, please.
Best Regards,
Otto