Problem: The client encountered a 'Critical error' on their website while a page was open in the browser. The error was related to the WPML plugin and was caused by a missing auto-increment on a primary key in one of the database tables. Solution: We recommend checking the ICL tables manually to ensure that they all have at least one primary key and that they are set to auto-increment. This also applies to the
wp_options
,
wp_post
, and
wp_postmeta
tables, which should all have a primary key with auto-increment. If you're experiencing this issue, please verify these database table configurations.
Problem:
How can I change the default language of existing products, from English to Ukrainian?
Solution:
- Backup database
- Go to the edit screen of the product (original language)
- Change the language using the Language switcher at the top admin bar to Ukrainian
- On the right sidebar, select "none" at "This is a translation of" and save
- Now, on the right sidebar, "This is a translation of" select back original language page.
- Popup will appear asking you if you wish to change the default language of the product.
- Confirm by selecting checkbox and Assing.
Solution:
Please contact your hosting provider and ask them to whitelist the following:
- wpml.org
- cdn.wpml.org
- api.wpml.org
If you still have issues:
Make sure that the PHP cURL extension is currently configured and updated on your server. In doubt, contact your hosting service so they can update the cURL extension to the latest version and they will also need to allow SSLV3.
Problem:
I am trying to:
Add a translation to a post/page.
1. Write the post title and content for a new post.
2. Click Save Draft or Publish.
3. Add a translation to that post.
4. Click the plus icon on language.
5. WordPress opens the translation page
6. Write the title and content.
7. Press Save Draft or Publish.
I expected to see:
Draft saved or post published.
Instead, I got:
Updating failed. You are probably offline.
- - -
I added a screenshot with the console log. It seems that WPML can't connect with the REST API and it fails. GET shows the REST url, but it's missing a slash.