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.

This topic contains 22 replies, has 2 voices.

Last updated by Ahmed Mohammed 1 year, 1 month ago.

Assisted by: Ahmed Mohammed.

Author Posts
April 4, 2023 at 10:59 am #13399037

ivanS-69

We're using Smartcat as a translation service. When a page/post is created, it is sent to Smartcat for translation. After the content there is translated, it is marked as completed. Everything works fine to this point.

However, when trying to get translated content back to WPML, nothing happens. We've tried many approaches but with no progress. When pressed 'Check status and get translations' on the Translation Management page, the content still stays marked as 'Waiting for translation service'.

We're also in touch with Smartcat support, but the issue is still not identified. Hopefully, you can give us your input and bring us closer to the solution. We appreciate your help. If you'd like to check it personally, we can create the CMS account and give you access.

April 4, 2023 at 8:24 pm #13404061

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support!

Before the ticket gets assigned to one of my colleagues, could you please provide us with the login details, as explained below?

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private, meaning only you and I can see and access it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved, I will delete the local site. Let me know if this is ok with you.

IMPORTANT

- Please backup site files and database before providing us access.
- If you do not see the wp-admin/FTP fields, your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to hearing back from you.

April 5, 2023 at 9:12 pm #13414181

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for providing the login credentials.

I can see that the REST API is disabled. I'm consulting with our second-tier support and will get back to you as soon as possible.

Regards,

April 12, 2023 at 6:40 am #13452253

ivanS-69

Hi Ahmed, do you have any updates maybe?
We should solve this issue before implementing WPML in production.

April 12, 2023 at 6:03 pm #13458811

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Ivan,

I'm very sorry for the delay. I've pinged our second-tier support and asked them for updates. I will keep you posted.

Regards,

April 13, 2023 at 6:02 pm #13467401

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

I appreciate the patience while we were working on this, and again, sorry for the unintentional delay.

Our second-tier support found issues with some translation jobs, and I'm leaving the jobs IDs here for reference:

120441, 120449, 120450, 120451, 120452, 120453, 120454, 120455, 120456, 120457, 120458, 120459, 120460, 120461, 120462, 120463, 120464, 120472, 120824, 28797, 17216, 17217, 17218, 17219, 17220, 17221, 17212, 17213, 17214, 17194, 17193, 17191

They have successfully fixed the issue and retrieved nine completed translation jobs, as shown in the attached screenshot.

Could you please check if there are any completed jobs in SmartCat that aren't retrieved by WPML?

Looking forward to hearing back from you.

image2.png
April 17, 2023 at 10:31 am #13486631

ivanS-69

Hi Ahmed, that's amazing news.
We'll check if there's something specific about these failed jobs and if all the translated content is pulled back.

Our team of translators is already testing with new content to make sure everything is working as expected. Please allow me a few days just to confirm it.

Do you mind sharing what was the issue and how it was solved? It doesn't matter how risky it sounds. We would really try to avoid this happening on the production site. And the solution will be useful for the near future projects where the same setup will be used.

April 18, 2023 at 1:15 pm #13496107

ivanS-69

Hi! Unfortunately, we're still experiencing the same issue. When pulling content back, nothing happens. Feel free to suggest any idea if there's something we can do from our side.

April 18, 2023 at 7:45 pm #13499243

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Ivan,

Sorry for the delayed reply. I had a longer weekend.

The original issue is that almost all the Smartcat jobs are having TP-ID = 0 as shown in the attached screenshot.

That happens when there's corruption in the database or something is going on with the connection between WPML on your website and Smartcat.

The fix was done by getting the translation job ID and going to WPML → Support → Troubleshooting → and using the field shown in the attached screenshot to fix that specific job.

I'm updating our second tiers with this info and I will get back to you the moment I hear back from them.

20230418 at 21.44.11@2x.png
image.png
April 19, 2023 at 8:57 pm #13507919

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Ivan,

We've found that WPML sends duplicate requests to the translation proxy, and in this case, it sent the first request and got the TP-ID correctly but then sent another request, got an exception from TP, and then removed the TP-ID and saved it as 0.

We would like to clone the website. I checked and found it's a multisite installation. We can clone a sub-site using a Duplicator PRO plugin, but we need to install it on a network level. Will it be OK to upgrade the provided user to a super admin?

On the other hand, we have fixed the stuck jobs you sent as a test, as shown in the attached screenshot.

Looking forward to hearing back from you.

20230419 at 22.57.06.png
April 20, 2023 at 5:04 pm #13513407

ivanS-69

Hi Ahmed. Thank you for the explanation.
At this moment we have disabled managing plugins from the admin (for everyone, including super-admins), so we would need to deploy the plugin through code.
But first, I need to check for this with the stakeholders and other team members since there is content in question. Please give me a few days to communicate this internally.

April 24, 2023 at 2:08 pm #13528115

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Ivan,

Sure! Please take your time!

Looking forward to hearing back from you.

April 27, 2023 at 1:16 pm #13550101

ivanS-69

Hi Ahmed. We're free to go.
You mentioned how you'd like to install Duplicator PRO plugin on the site. That is only possible to do through the code. We would need either .zip file of the plugin or the direct link we can use for the download with wpcli. I hope at least one of these approaches works well for you?

April 28, 2023 at 6:21 pm #13559355

ivanS-69

Hi Ahmed, the plugin is deployed to the site. You have admin capabilities, so I'll leave the activation and other actions to you.

May 1, 2023 at 9:52 am #13564459

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Ivan,

Thank you for installing the plugin. As shown in the attached screenshot, I still cannot visit the Network settings. That means the user I logged in with isn't a super admin.

In order to be able to use Duplicator on a multi-site installation, I need to create the package from the network page.

You can create the package for me by activating the plugin on a network level, and following the first step from this doc: hidden link.

When you have the .zip and installer.php file, you can upload them to Google Drive, Dropbox, or WeTransfer and pass the download link to me. I have enabled the private reply.

Alternatively, you can upgrade my user to be a super admin so that I can access the network settings.

Looking forward to hearing back from you.

20230501 at 12.48.21.png