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.
Problem:
I just purchased WPML and I get the following error only when the 'WPML String Translation' plugin is activated.
Warning: ftp_fget() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 146
Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 560
When I deactivate the 'WPML String Translation' plugin the error goes away.
This error will occur on the published website and also when I edit a webpage within WordPress. Any ideas what is causing this? I literally just installed WPML and I'm using the Avada WordPress theme which is said to be 100% compatible.
**EDIT**
I resolved the first error by increasing the Memory Limit to 256M. I am still getting the second error:
Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 560
Solution:
I found the solution to the issue. The owner of the core wordpress files was set to my personal user. I changed this permission to be apache and everything seems to be working.