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 5 months, 2 weeks ago.

Assigned support staff: Itamar.

Author Posts
April 28, 2019 at 8:31 am #3697393

dimaB-2

I am trying to: import XLIFF file. Tried xliff files tried zip file.

Link to a page where the issue can be seen:
localhost//wp-admin/admin.php?page=wpml-translation-management%2Fmenu%2Ftranslations-queue.php
WPML / Translations / Select the xliff file or zip file to upload from your computer:

I expected to see: Page where all translations successfully imported.

Instead, I got:

Cannot load wpml-translation-management/menu/translations-queue.php.

What it can be and How I can fix this issue? Thanks

April 29, 2019 at 2:38 pm #3704457

Itamar
Supporter

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

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

Hi.

Please correct the following and check if it helps to solve the problem.

1. Updated WordPress to its latest version on your site.

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

2. Update WPML to its latest version currently 4.2.6

3. By looking at the debug info that you have attached I can see that your server WP Memory Limit is set to 96M.
Our recommendations are to have the following as minimal requirements:
- PHP 5.6 and above (this OK with your installation) with a WP Memory Limit of at least 128MB and more if possible.
- MySQL 5.6 and above (this OK with your installation).
Please follow this link for detailed documentation:
https://wpml.org/home/minimum-requirements/
Is it possible for you to change those to the minimum requirement?
You may need to contact your hosting provider for that.
Meeting those baseline requirements is most critical before starting to debug and sometimes solves issues like you experiencing.
Most important is to raise the WP Memory Limit.
Please try to raise it before you contact your hosting company.
You can try and do it from the wp-config.php file in your WordPress installation.
Insert this code in that file.

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Add it before this line:
/* That's all, stop editing! Happy blogging. */

Could you please perform those procedures and see if they help?

Thanks,
Itamar.

May 1, 2019 at 6:45 am #3716265

dimaB-2

Itamar, I changed memory limits but still have this message:

Cannot load wpml-translation-management/menu/translations-queue.php.
May 1, 2019 at 2:47 pm #3718601

Itamar
Supporter

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

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

Hi and thanks for trying my suggestions.

Could you please send me the XLIFF file that you are trying to upload to your site?
I'll then try to see if I get the same error when I try to upload it to my localhost test site.
You can upload the file to a service like Google Drive or Dropbox and share the link with me.

Thanks,
Itamar.

May 2, 2019 at 9:17 am #3723165

dimaB-2

Sure:
https://pastebin.com/KYfGLNEv

May 2, 2019 at 5:14 pm #3727555

Itamar
Supporter

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

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

Hi and thanks for sharing with me the file.

Was this XLIFF file exported from the same site where you are trying to make the import?
It is not possible to import an XLIFF file that does not belong to the site. But usually, the following message is shown when the XLIFF file is not from the same site.

The uploaded xliff file doesn't belong to this system.

And in your case, it is a different message which I'm not able to replicate.

If it is a file from the same site and you are still getting this message, please share with me the access details of your site so I could check things on your site.

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 next 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 make a backup of site files and database before providing us access. --

Thanks,
Itamar.

May 6, 2019 at 10:56 am #3747255

Itamar
Supporter

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

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

Hi and thanks for the access details.

I've checked things on your site, and I do not get the message that you get.

Cannot load wpml-translation-management/menu/translations-queue.php.

In WPML -> Translations, I can import XLIFF files to your site. Of course, the XLIFF files are files that I've first exported from the site. Here is the process that I did.
1. Set me as a translation manager.
2. Appointed me as a translator from English to all the other languages.
3. I've created a test page in English. You can see it here.
hidden link
4. In WPML -> Translation Management -> Translation Dashboard, I've sent this page to the translation basket.
5. On the translation basket, I've sent it to translation to be translated by me.
6. In WPML -> Translations, I've exported the job as an XLIFF file.
7. On my computer, I edited the XLIFF file and translated the content.
8. In WPML -> Translations, I uploaded the translated XLIFF file.
9. The process was completed successfully. Please see the attached screenshot. The page is now translated.

Could you please tell me the exact steps on how I can replicate the problem that you are having?

But even before that and also very important please carry out the following.
1. Update WordPress to its latest version (currently 5.1.1)
2. Increase the WP Memory Limit. Please see the attached screenshot 96m.jpg.
3. Update WPML and its add-ons. Please see the attached screenshot updt-wpml.jpg
I've mentioned it before and gave all the details on this reply.
https://wpml.org/forums/topic/cant-import-translations-xliff/#post-3704457

Can you please do that and see if it help?

Thanks,
Itamar.

The topic ‘[Closed] Can't import translations (XLIFF)?’ is closed to new replies.