We have just released WPML 4.3.3. Before reporting issues please make sure to update - this version resolves all known issues with the major WPML 4.3 release

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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

Last updated by Otto 1 year ago.

Assigned support staff: Otto.

Author Posts
September 13, 2018 at 9:34 pm #2733098

lucieS-2

Hi, my site is using Q translate X and I want to use instead WPML. I already have the WPML plugin and I´d like to know if I have to use the procedure of the link below, using the q translate importer.

https://wpml.org/documentation/related-projects/qtranslate-importer/
Multi-Language Conversion (convert from qTranslate to WPML)

Also, do I have to install some of the plugins such as "wpml string translation", "wpml media translation" etc?

Is there any documentation that you are following? The one above

What is the link to your site? hidden link

September 16, 2018 at 11:15 am #2738802

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Please, apologize for the delay in answering. I will take care of this ticket and reply time will be shorter now.

Yes, that documentation is valid and is how you should proceed to do the migration. Please backup your site before running it.

The conversion is for the content (posts and pages), so the add-ons are not required. You may need them later if you want to translate strings from the theme or plugins.

Let me know if this points you in the right direction, please.

Kind regards,

Otto

September 16, 2018 at 3:23 pm #2738984

lucieS-2

Hi Otto,

Thanks for your reply. I have started the process with the qTranslate importer but it takes a long time. It´s been more than 1 hour. It´s in "working" mode but it seems nothing happens since more than 30. Is it normal? it´s in:

Importing terms.
Fixing terms: batch #5.
Finished adjust terms hierarchy batch #1.
Finished fixing terms.
****************************************
Importing terms.
Fixing terms: batch #4.
Finished import batch #4. Imported 10 terms.
Preparing next batch.
****************************************
Importing terms.
Fixing terms: batch #3.
Finished import batch #3. Imported 10 terms.
Preparing next batch.
****************************************
Importing terms.
Fixing terms: batch #2.
Finished import batch #2. Imported 10 terms.
Preparing next batch.
****************************************
Importing terms.
Fixing terms: batch #1.
Finished import batch #1. Imported 10 terms.
Preparing next batch.
****************************************

September 17, 2018 at 9:59 am #2740496

lucieS-2

Hi Otto,

Any help? I had to stopped it as it didn´t work.

September 17, 2018 at 11:38 am #2740733

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Can you please try it again, but this time, enable the WP Debug mode so we can have more information about the issue.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );

In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

If you can paste your debug.log to pastebin.com and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess in the discussion).

Let me know your results, please.

Kind regards,

Otto

September 24, 2018 at 11:45 am #2760330

lucieS-2

Hi,

I tried again and exactly the same problem. I have followed your instruction but I can´t find the debug.log log file inside the /wp-content/directory. Instead I have found this error log. Let me know if they help you

https://pastebin.com/K3GSJYRk

Thanks

September 24, 2018 at 2:22 pm #2760770

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I can't see the pastebin because is set to private.

And I could not reproduce the issue in a test WP installation. It may be another plugin or theme interfering.
To check it, if it is possible for you, do this test:
***Backup your site and DB before proceeding***

-Deactivate all the plugins but WPML and its add-ons
-Switch to a default WP theme (Twenty Sixteen for example)
-Run the import again

If this does not help, can you please provide me with a copy of your site's DB so I can try it locally?

Kind regards,

Otto

September 25, 2018 at 11:19 am #2763486

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

Can you provide me with the DB but before you tried the import?

I enabled a new private reply.

Thank you!

Kind regards,

Otto

September 25, 2018 at 12:55 pm #2763842

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

No, as far as I can see WPML tables were already created in the DB. Do you have a previous one?

Thanks!

Kind regards,

Otto

September 26, 2018 at 2:32 pm #2767695

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Thank you.

The problem is the "element_type".

In many cases, this is fixed going to:
WPML > Support > Troubleshooting > "Fix element_type collation"

I tried it and it let me reach batch 14.

But, in some cases, this fix is not 100% effective. And I get this error:

PHP Fatal error:  Uncaught InvalidArgumentException: element_id and type do not match for element_id:206912 the database contains post_nav_menu_item while this function was called with post_product in /var/www/html/qimport/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:32

What needs to be done is to access to your DB, in the table wp_icl_translations, look for the row with element_id 206912 and change its element_type from post_nav_men to post_product.

And repeat each time this error breaks the import.

The error will let you know the element and what you should change.

Please, let me know if my explanation was clear and if you manage to do it.

Kind regards,

Otto

September 26, 2018 at 6:00 pm #2768312

lucieS-2

Thanks Otto,

I´ll try to fix it. Where is "wp_icl_translations"?
And then, how or where can I get the error info in case there is a similar error?
Thanks

September 26, 2018 at 6:37 pm #2768424

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Please apologize I wasn't clear enough.

You will see the error in the debug.log, as explained here:
https://wpml.org/forums/topic/q-translate-x/#post-2740733

You may delete the file and it will be recreated with just the last error each time.

"wp_icl_translations" is a table in your site's DB. To access to it you will need to use PHPMyAdmin (check with your hosting about this) or you can use the Ari-Adminer plugin.

Let me know your results, please.

Kind regards,

Otto

September 26, 2018 at 6:55 pm #2768433

lucieS-2

Ok,

I´ll try but remeber that lastime I followed your instructions but I couldn´t find the debug.log log file inside the /wp-content/directory.
Let me know if the debug.log may be in other place.
Thanks

September 26, 2018 at 7:00 pm #2768437

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

No, it should be there if there are errors and the debug is enabled:
https://codex.wordpress.org/WP_DEBUG

Some servers prevent the debug mode to be enabled from the configuration file. If there are no errors (no file), I suggest to check with your hosting if this maybe the case.

Kind regards,

Otto

September 27, 2018 at 8:12 pm #2771720

lucieS-2

Hi Otto,

Just a quick question, about de debug.log that should be in /wp-content/directory.....what is "directory"? Is it a folder with that name within /wp-content/ or is the folder /wp-content/?
Thanks