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
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 10 replies, has 2 voices.

Last updated by Bruno Kos 2 years, 2 months ago.

Assisted by: Bruno Kos.

Author Posts
February 27, 2023 at 2:32 pm #13125565

Mykola Kareiev

Hello
Automatic translation doesn't work when I run the import via crontab.
If I run the import through the admin panel or wp-cli - everything works.
But my site needs to be launched via crontab on a schedule
In another ticket, I had a similar issue with removing translations after import via crontab
In that case, there was a problem with the hook constraint.
I think this problem might be related to this.

February 28, 2023 at 10:51 am #13134073

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

Can you check this, does it help?
https://wpml.org/forums/topic/update-translations-after-import/#post-12673549

Or https://stackoverflow.com/a/30950862, given that the post will only be created first at that point?

Regards,
Bruno Kos

February 28, 2023 at 2:42 pm #13136699

Mykola Kareiev

Hi,
If I wrote my own import code, it would probably work for me. BUT I use the WPAllImport plugin (maybe I should have mentioned this) in conjunction with the WPML WPAllImport plugin. And I should have it working by default as it works when imported via admin panel and works when imported via wp-cli but doesn't work via crontab.
hidden link
I recorded a video in which I show the problem in detail and clearly.
In the video you can see how I try to use CRON to import products, after which WPML does NOT create product translations.
After that, I try to do the same with the import through the admin panel and it works.
After that, I delete the products again and run the import via CRON.

February 28, 2023 at 3:50 pm #13137481

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for the video! I asked our 2nd tier team about this, I'll get back to you as soon as I have any news or questions for you.

Regards,
Bruno Kos

March 1, 2023 at 9:17 am #13142749

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

The suggestion I got from 2nd tier: "Try to hit the CRON URL from same browser when you are logged-in as admin or translation manager, as it is possible that Translate everything triggers the jobs when the user is present so not working on CRON jobs."

Can you try this and let us know about the results, as this will help us go further with this?

Regards,
Bruno Kos

March 1, 2023 at 10:46 am #13143501

Mykola Kareiev

Hi,
I tried and it still doesn't work
I made a video of how I did it so you can see
hidden link

March 2, 2023 at 1:53 pm #13155601

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Can I ask you to have a look at this ticket?
https://wpml.org/de/forums/topic/auto-translation-von-woocommerce-produkten-funktioniert-nicht-wp-all-import/

The ticket itself is in German but can be translated to German like this:
hidden link

Regards,
Bruno Kos

March 2, 2023 at 7:11 pm #13158305

Mykola Kareiev

Hi,
I read this ticket, but unfortunately this is not my option. In the current version of the WPAI Woocommerce addon that I have installed, this line has already been commented out.
So, unfortunately, this solution is not relevant for me.

March 3, 2023 at 10:54 am #13162631

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

It may be a different case then, we will have to debug this in any case. That being said we will need some information:

- https://wpml.org/faq/provide-supporters-copy-site/
- please exclude all the media files, etc, to keep the package minimal.
- WordPress admin username and password
- clear steps to reproduce (URLs and screenshots were available)

Only once we will have all this information we will be able to debug this.

I marked your next reply private so you can safely add this information.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Regards,
Bruno Kos

March 7, 2023 at 8:33 am #13186229

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

This is escalated to our 2nd tier team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

Regards,
Bruno Kos

March 8, 2023 at 8:34 am #13196567

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

This issue has been escalated to WPML developers. I'm afraid the issue itself is way more complex than providing a simple workaround before the final fix is there.

I will keep this thread updated as soon as I get any new information from them, but I do not have any time frames when and how will this be addressed.

Regards,
Bruno Kos