Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 2 months, 4 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
August 28, 2024 at 7:40 am

horeaR-2

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?

August 28, 2024 at 9:24 am
September 2, 2024 at 6:55 am #16130093

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

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.