Problem: If you're trying to enable the WPML plugin on your site but cannot access the wp-admin after doing so, it might be due to a compatibility issue with other plugins or your theme. Specifically, you might encounter an error message preventing access to the wp-admin.
Solution:
First, ensure you are using WPML version 4.7.6 and enable the WordPress Debug log to collect more details about the issue. Modify your wp-config.php file as follows:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
After enabling debugging, reproduce the issue and check the debug.log file in the /wp-content/ directory for any errors related to WPML. If you find errors such as a PHP Fatal error related to the SimpleXML extension, this indicates that the SimpleXML extension is not active on your server. Contact your hosting provider to enable the SimpleXML extension. For more information, visit the following links:
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket.
The client was experiencing errors on their Arabic version of the site after updating string translations.
Solution:
We identified that the issue was due to incorrect translation of placeholders within strings. Specifically, the string "%s days" from the "Payment Plugins for Stripe WooCommerce" plugin was not correctly translated into Arabic. We recommend checking and correcting similar translations.
After making these corrections, we suggest taking a site backup, then verifying the functionality by navigating through the Arabic posts, translating a few posts, and making some test purchases to ensure the issue is resolved.
If this solution does not apply to your case, or if it seems outdated, 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. Should the problem persist, please do not hesitate to open a new support ticket at WPML support forum.
Problem: The client was unable to translate testimonials and FAQ sections on certain pages of their website using WPML's Advanced Translation. The second page was also disconnected from Advanced Translation, and changes were not reflected on the translated page. Solution: We identified that the client was using custom widgets to display the FAQ and Testimonials, which needed to be registered for translation. We recommended registering the custom Elementor widgets following the guide at https://wpml.org/documentation/support/multilingual-tools/registering-custom-elementor-widgets-for-translation/. Additionally, we suggested resaving the affected pages to allow the Advanced Translation Editor to resync the content. We also installed a multilingual tool plugin to address errors preventing the completion of translations and deactivated conflicting plugins to further diagnose the issue.
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 problems persist, please open a new support ticket at WPML support forum for further assistance.
Problem: The client reported inconsistencies in product sorting across different language pages on their WooCommerce site, even after previous code adjustments. Solution: We provided custom code to ensure consistent sorting by date, SKU, price, and popularity across all language versions of the site. Here are the steps we recommended:
//Use the below snippet when sorting by price and popularity, so that SKU is used as the secondary sort option:
add_filter('posts_clauses', 'custom_orderby_with_secondary_sku', 20, 2);
function custom_orderby_with_secondary_sku($clauses, $query) {
if (!is_admin() && $query->is_main_query() && is_woocommerce() && isset($_GET['orderby'])) {
$orderby = $_GET['orderby'];
// Define primary column and direction based on ordering
switch ($orderby) {
case 'price':
$primary_column = 'wc_product_meta_lookup.min_price';
$primary_direction = 'ASC';
break;
case 'price-desc':
$primary_column = 'wc_product_meta_lookup.max_price';
$primary_direction = 'DESC';
break;
case 'popularity':
$primary_column = 'wc_product_meta_lookup.total_sales';
$primary_direction = 'DESC';
break;
default:
return $clauses; // Not a target orderby value, leave alone
}
// Set ORDER BY with SKU as secondary sort
$clauses['orderby'] = "
{$primary_column} {$primary_direction},
wc_product_meta_lookup.sku ASC
";
}
return $clauses;
}
If this solution does not resolve your issue or seems irrelevant due to updates or specific circumstances, we recommend opening a new support ticket. Additionally, 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. For further assistance, please visit our support forum at WPML Support Forum.
The client is experiencing issues with the WPML translation queue not loading, displaying the error 'Aufträge konnten nicht geladen werden'. This issue began after adding new languages and persists despite various troubleshooting steps, including disabling plugins and adding different language pairs to the translator profile. A 'Division by Zero' error was identified in the debug log, indicating a potential cause.
Solution:
We resolved the issue by running SQL queries to update the status of translation jobs in the 'icl_translation_status' table. First, we changed the status of jobs that were 'In Progress' (status 2) to 'Needs Update' (status 1) with the following query:
UPDATE `{wpdbPrefix}_icl_translation_status` SET `status` = 1 WHERE `status` = 2
Then, we set all remaining ongoing jobs to 'Finished' (status 10) using these queries:
UPDATE `{wpdbPrefix}_icl_translation_status` SET `status` = 10 WHERE `status` = 1;
UPDATE `{wpdbPrefix}_icl_translation_status` SET `status` = 10 WHERE `status` = 9;
After applying these fixes, we advised the client to go to WPML > Translation Management and resend any pages they wish to translate.
If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your specific 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 problems persist, please open a new support ticket at WPML support forum for further assistance.
Problème : Le client a traduit les pages de son site avec WPML, mais la version traduite en anglais n'apparaît pas. Lors de la vérification, les traductions redirigent vers des erreurs 404. Solution : 1. Nous avons recommandé de vérifier si la page est traduite à 100% et publiée. Nous avons aussi suggéré d'utiliser soit la traduction automatique soit la traduction manuelle selon le besoin. 2. Nous avons conseillé d'augmenter la valeur de WP_MEMORY_LIMIT à au moins 256M en ajoutant la ligne suivante dans le fichier wp-config.php :
Si cette solution ne résout pas votre problème ou semble dépassée, nous vous recommandons de vérifier les problèmes connus sur https://wpml.org/known-issues/, de vérifier la version du correctif permanent et de confirmer que vous avez installé les dernières versions des thèmes et plugins. Si le problème persiste, n'hésitez pas à ouvrir un nouveau ticket de support sur notre forum de support.
The client was experiencing issues with the Media Translation not working correctly for the WoodMart theme using Elementor. Specifically, images translated into Vietnamese were not displayed on the translated version of the homepage.
Solution:
We resolved the issue by adding a custom language configuration for the Elementor widget used by the WoodMart theme. Here are the steps we followed:
1) Navigate to WPML >> Settings >> Custom XML Configuration. 2) Insert the following XML configuration and save the changes:
3) Open the Homepage for editing in English and make a minor change to refresh the translation settings. 4) Resave the Homepage translation from the WPML Translation Editor.
For further details on configuring language files, please refer to the following documentation:
If this solution does not apply to your case, or if it seems outdated, 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 issues persist, please open a new support ticket at WPML support forum.