Background of the issue:
I'm trying to translate a wp_template. The template does not have any translatable content. There are just two template parts and the content block. The steps I used are: - Wpml -> translation management - select my template for translation - translate myself - Go to the translation queue - The status for the template is: 'Needs translation'. I have a translate button. - I get redirected to the wpml translate wizard from: 'hidden link' - I get the error: 'Unable to retrieve job details' I get a javascript error: 'Cannot read properties of undefined (reading 'id')'. It seems to be from a javascript function: 'parsePage'. From what debugging I did the issue seems to be from this request: hidden link. On a page that the wizard works ok I get an object with groups, job, page_date and pages. But for my use case where I crashes I get only data for the job. I tried with our custom blocks but also with only the 2024 theme and no other plugins and the issue persists. This seem to be a bug from wpml.
Symptoms:
Unable to retrieve job details. I get a javascript error: 'Cannot read properties of undefined (reading 'id')'.
Questions:
Do you have any way for the template to be marked as translation completed for cases like this where no translation is needed?
Hello There,
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.
I reviewed the entire conversation you had with my colleague Noman and have a clear understanding of the issue. Upon examining the Template, I noticed that it contains three dynamic Blocks. The content within these blocks is loaded dynamically, and there are no other text elements or static content that require translation. This is the reason the editor is not loading and is showing an error.
If you add a Paragraph Block to the Template, save the changes, and then try to add or update the translation, you'll notice that the Editor loads correctly with the content from the Paragraph block.
I already have completed the translation of that template. When translating a template with only dynamic blocks, please ensure that it includes some static content before trying to translate it. This should resolve the issue.
I hope this helps. Feel free to let me know if you need further assistance or clarification. I will be happy to help.
Best regards,
Prosenjit
The topic ‘[Closed] Unable to retrieve job details when translating wp_template’ is closed to new replies.