Skip Navigation

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

Problem:

Qtranslate-x cleanup and WPML translation migration queries...

The site in question(https://framer.judokitten.com) has 2 languages assigned, Dutch being the default language and English as secondary. There are duplicate posts and pages(not all) one for Dutch content and one for English content. After importing with the aforementioned plugin and copying the provided redirects to the functions.php file, all the content was assigned to Dutch language.

Solution:

I checked the pages of your site - Pages -> All Pages. I can see 76 pages in Dutch and 36 pages in English, almost all of which are not connected to each other. Please see the attached screenshot pages-not-connected.jpg.

I also checked the .htaccess file of your site. I don't see there any language RewriteRules. I checked the 'theme' functions.php file and saw the following line.

include(get_stylesheet_directory() . '/qt-importer-redirects.php');

However, I don't see the qt-importer-redirects.php file in the root of your theme's folder.

Apparently, you didn't migrate from qTranslate to WPML properly. At this point, I recommend rolling back your site to a backup before the migration and doing the migration again with great attention to the details and process needed. Carefully follow our guide.

https://wpml.org/documentation/related-projects/qtranslate-importer/

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

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

Last updated by dannyK-8 1 year, 10 months ago.

Assisted by: Itamar.

Author Posts
July 17, 2023 at 9:45 am #14047901

dannyK-8

The site in question(hidden link) has 2 languages assigned, Dutch being the default language and English as secondary. There are duplicate posts and pages(not all) one for Dutch content and one for English content. After importing with the aforementioned plugin and copying the provided redirects to the functions.php file, all the content was assigned to Dutch language.

Is there a way to reassign those posts/pages automatically to their languages, or this needs to be done manually?

The pages that redirect you to certain posts such as(hidden link -> exposities they would also need to be reassigned to point to the Dutch/English language content).

There is also the issue when a user clicks to be returned from English to Dutch language they are for example redirected to this link hidden link, which shouldn't have the /nl/.

Below I am providing you with the debug info, and if necessary I can provide you with credentials for the staging site.

July 17, 2023 at 12:22 pm #14049381

Itamar
WPML Supporter since 02/2016

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

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

Hi,

Can you please confirm that you follow our guide on migrating from qTranslate to WPML?

https://wpml.org/documentation/related-projects/qtranslate-importer/

Please note that we have a bridge plugin called qTranslate X Cleanup and WPML Import to complete the task of importing qTranslate X sites to WPML.

https://wordpress.org/plugins/qtranslate-to-wpml-export/

Regards,
Itamar.

July 17, 2023 at 12:30 pm #14049389

dannyK-8

Hi Itamar,

Yes, I have used that exact plugin for the migration from qTranslate and the Multi-Language Conversion guide from the wpml documentation.

July 17, 2023 at 1:16 pm #14049945

Itamar
WPML Supporter since 02/2016

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

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

Thanks.

You asked: "Is there a way to reassign those posts/pages automatically to their languages, or this needs to be done manually?"

After successful migration, the posts/pages and their translations should be contacted with each other.

Have you added the URL redirection rules, as we explain here?

https://wpml.org/documentation/related-projects/qtranslate-importer/#adding-url-redirects

July 17, 2023 at 1:42 pm #14050197

dannyK-8

The redirection links were added as specified in the documentation.

July 17, 2023 at 2:23 pm #14050433

Itamar
WPML Supporter since 02/2016

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

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

I see.

If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

July 17, 2023 at 7:30 pm #14053221

Itamar
WPML Supporter since 02/2016

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

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

Hi, and thanks for the access details.

I checked the pages of your site - Pages -> All Pages. I can see 76 pages in Dutch and 36 pages in English, almost all of which are not connected to each other. Please see the attached screenshot pages-not-connected.jpg.

I also checked the .htaccess file of your site. I don't see there any language RewriteRules. I checked the 'theme' functions.php file, and I do the following line there.

include(get_stylesheet_directory() . '/qt-importer-redirects.php');

However, I don't see the qt-importer-redirects.php file in the root of your theme's folder.

Apparently, you didn't migrate from qTranslate to WPML properly. At this point, I recommend rolling back your site to a backup before the migration and doing the migration again with great attention to the details and process that needs to be done. Carefully follow our guide.

https://wpml.org/documentation/related-projects/qtranslate-importer/

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

You have the W3 Total Cache plugin active on your site. I strongly recommend not using this plugin until you finish all the migration and translation processes of your site. Please refer to our guide on working with the W3 Total Cache plugin.

https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-website-performance-using-w3-total-cache/

pages-not-connected.jpg
July 17, 2023 at 8:37 pm #14053447

dannyK-8

I manually changed those pages to English, however I understand now, what needs to be done differently. The best solution would indeed be a rollback. Thank you for the support.