Problem:
We are trying to set up a user role for translators on our site that gives them the permissions to edit and translate the content, but not to access plugins and theme options.
Solution:
Just add this code to the functions.php file:
add_filter('wpml_user_can_translate', function ($user_can_translate, $user){
if (in_array('editor', (array) $user->roles, true) && current_user_can('translate')) {
return true;
}
return $user_can_translate;
}, 10, 2);
Problem: The client is using WPML with Advanced Custom Fields (ACF) and the Advanced Custom Fields Multilingual plugin. Automatic translation adds content to WordPress, but the frontend does not display the translated content unless the client updates the page manually by clicking the "Update" button.
Problem:
When I enable WooCommerce Stripe Gateway, there are no Stripe settings. I can’t change anything in the settings, I always get the “Error Saving settings”.
Solution:
Go to wp-content/plugins/woocommerce-multilingual/classes/Rest and edit the Functions.php file. Here, just change this line:
Problem: The client is trying to register WPML on a local development site without an external URL using a dev site license. Solution: We recommend registering WPML using the local URL of the site, ensuring to include the complete URL, such as
http://localhost/wpml-test
or
http://wpmltest.local
It's important to include "http://" in the URL. If there are issues obtaining updates, the client can download the latest versions of our plugins from our downloads page. Please note that the Multilingual CMS account allows the registration of up to 3 websites, which typically includes one development and one production site per website. If the client needs further assistance, we suggest checking related known issues, verifying the version of the permanent fix, and confirming that the latest versions of themes and plugins are installed. If the solution provided here is outdated or not applicable, please open a new support ticket on our support forum.
Problem: The client is experiencing an issue where switching to a non-default language on their online courses website results in incorrect URLs for the courses. Additionally, the client is unable to find certain strings for translation in the WPML String Translation section.
Solution: For the URL issue, we recommended checking the theme's documentation regarding WPML compatibility, which states that languages by parameters are not supported. We advised the client to change the URL format to 'directories' in WPML > Languages > Language URL format and then resave the permalinks.
If the provided solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket in our forum: https://wpml.org/forums/forum/english-support/
Problem:
The admin string shows as Registered and locked, how can we enable it's translation?
Solution:
“Registered and locked” means that the string is already registered by the theme or via an XML configuration file. They should appear on the WPML >> String Translation page so that you can translate them.
Problem: The client is experiencing an issue with an invalid site key error and their URL has been blocked due to a high number of requests to the server.
Solution: We recommend updating all functionalities of the site to the latest versions. Once this is done, inform us so that our system specialists can proceed with unblocking the URL. The blockage is due to the high number of requests which can be mitigated by updating the site. It is important to communicate with the client to get approval for these updates. If the site remains blocked, some functionalities of WPML may not work as expected.
If this solution does not seem relevant to your situation, please open a new support ticket with us.
Problem:
After restoring a backup, the following error appears:
Fatal error: Uncaught Error: Interface 'WPML_Log' not found in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-config-update-log.php:6
Solution:
This is probably happening due to some missing/corrupted files after the backup restore. Please try the following:
1. Delete the "sitepress-multilingual-cms" plugin folder from the plugins directory
2. Go to the WP dashboard and deactivate the other WPML plugins
3. Download a new version of the "WPML Multilingual CMS" plugin from https://wpml.org/account/downloads/
4. Extract and upload it to the plugins folder
5. Activate it