Background of the issue:
I am trying to use bulk auto translate with WPML. When running it, the translated pages are created, but they often have the wrong language assigned and no parent. You can see the issue on this page: hidden link
Symptoms:
Translations are assigned the wrong language and no parent, resulting in messy translations.
Questions:
Why are translations being assigned the wrong language?
Why are translations not being assigned a parent?
Apparently this shouldn't happen unless there's something breaking the process (i.e. a conflict).
Before proceeding further, can you please try the following?
Take a full backup of your site and database before proceeding. It is highly advised to try these on a dev or staging site first, so your live site isn't compromised.
1) Enable debugging in your site? See https://wpml.org/documentation/support/debugging-wpml/ for details.
2) Deactivate all plugins except WPML and String Translation.
3) Switch to a standard theme like 2024 or 2021.
4) Check for the issue if it still happens.
5) Then start activating plugins one by one while keep checking for the issue. This way you 'll be able to pinpoint a conflict when & where it starts creating the problem.
6) If after activating all plugins you see that it still works fine, then switch to your theme and see if that's causing it.
Please let me know your findings and I'll try my best to help you further on the matter.
Is there an easy way to fix the translations so they now get the right language and parent assigned? Or would I need to delete all translations and run the bulk translate again?
Thank you for the updates and glad that it worked out for you.
To answer your question correctly, we'll need to identify the cause of the issue. Since at this point I'm not sure why that happened in first place, unfortunately I can't recommend anything clearly.
Did you check by the steps I mentioned in my previous message and did you find any reason or conflict?
On the other hand, deleting translations is a workaround in some cases, but shouldn't be required all the time. Again, to provide a proper fix or solution, it is important to understand the actual cause of the problem.