Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

Qtranslate - Post categories are not preserved on translated posts

Solution:

1. Take a backup of the DB of your site.

2. Go to WPML -> Support -> Troubleshooting (link)

3. Once on the troubleshooting screen press the following buttons and check if it helps.

Press each button at a time and wait for the process to complete.

- 'Synchronize posts taxonomies' for your [post types].

- 'Clear the cache in WPML'

- 'Remove ghost entries from the translation tables'

- 'Fix element_type collation'

- 'Fix WPML tables collation'

- 'Set language information'

- 'Assign translation status to duplicated content'

- 'Fix terms count'

- 'Fix post type assignment for translations'

- 'Cleanup and optimize string tables'

*** Please make a backup of your database before using this.***

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 6 replies, has 2 voices.

Last updated by Itamar 4 years, 7 months ago.

Assisted by: Itamar.

Author Posts
March 31, 2020 at 12:07 pm #5803723

Ezynic

I'm trying to import Qtranslate content into WPML. I've followed the instructions and everything is using the latest version.

FYI I had to activate a default WordPress theme during the import to avoid problems (the importer would stop).

Also, the .htaccess rules presented after the import didn't work for me. I had to take them out for the site to more or less work.

Anyway, the problem I have is that after the import the site breaks completely and I can't find out where/why.

March 31, 2020 at 10:16 pm #5808203

Ezynic

OK, after a bit more work, I got it more or less under control. So here's a summary of issues/findings in case it's useful:

1. Momentarily choosing one of the default Twenty WordPress templates during the import can avoid problems.
2. Making sure that there's a high memory limit set on wp-config.php too.
3. For some reason my site didn't need the generated .htaccess rules and actually works perfectly without them and not at all with them.
4. It's necessary to save the permalinks.
5. Widget translations are not imported.
6. Some menu translations are not imported. It's necessary to synchronize menu items for translated menus to work at all.
7. Post categories are not preserved on translated posts, which can be a huge task.

I've managed to more or less fix my problems one by one, although the post categories really needs some automated solution.

April 1, 2020 at 7:33 am #5810209

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi.

I'm glad to read that you managed to fix most of the problems after the import. Thanks a lot for the detailed input that you added here. Please let me know if any further help is needed with this issue.

Regards,
Itamar.

April 1, 2020 at 10:02 am #5811423

Ezynic

Is there any way to automatically put the translated posts in the same category as the original language posts?

April 1, 2020 at 10:35 am #5811747

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi.

You can try WPML's troubleshooting section to see if it solved the issue.

1. Take a backup of the DB of your site.
2. Go to WPML -> Support -> Troubleshooting (link)
3. Once on the troubleshooting screen press the following buttons and check if it helps. Press each button at a time and wait for the process to complete.
- 'Synchronize posts taxonomies' for your [post types].
- 'Clear the cache in WPML'
- 'Remove ghost entries from the translation tables'
- 'Fix element_type collation'
- 'Fix WPML tables collation'
- 'Set language information'
- 'Assign translation status to duplicated content'
- 'Fix terms count'
- 'Fix post type assignment for translations'
- 'Cleanup and optimize string tables'

*** Please make a backup of your database before using this.***

Please let me know if this solves the issue.

Regards,
Itamar.

April 1, 2020 at 2:59 pm #5814655

Ezynic

That fixed the categories problem, thank you! I don't know if there's an automated fix for widgets but it was easy enough to do it manually in this case.

April 1, 2020 at 3:38 pm #5815233

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Great, I'm glad that it is solved now!
Good luck with your web projects 🙂
Itamar.