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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.