Problem: The client was experiencing issues with WP Menu Sync not picking up changes made through String Translation for custom link labels pointing to external sites. Solution: We recommended following a specific workaround detailed in our errata page for issues related to the translation of custom menu items. Here are the steps we advised: 1. Go to WPML > String Translation and delete the string registered under the Menu domain. 2. Navigate to Appearance > Menus and save the menu without making any changes to allow the menu strings to re-register for translation. 3. Return to WPML > String Translation and translate the custom menu link and label. 4. Access WPML > WP Menu Sync and perform the synchronization. Even if the English name appears initially, proceed with the synchronization. 5. After synchronization, clear the cache from WP Rocket. 6. The WP Menu Sync page will reload, displaying the translated custom menu link and label. Synchronize the menu again to update the menu label with the correct translation.
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 further assistance is needed, please open a new support ticket at WPML support forum.
Problema: Stai cercando di nascondere alcuni campi di Elementor con regole condizionali, specificamente se un post è correlato a un tag, certi campi non devono essere mostrati. Questo funziona solo nella prima lingua, l'inglese, ma non nei post tradotti. Soluzione: Attualmente, non supportiamo questa funzionalità nativamente. Tuttavia, i nostri sviluppatori hanno creato una soluzione alternativa che puoi trovare qui. Abbiamo testato questa soluzione nella nostra Sandbox e funziona perfettamente senza la necessità di risalvare le traduzioni o altro.
Se questa soluzione non dovesse essere più rilevante, perché potrebbe essere superata o non adatta al tuo caso, ti consigliamo di aprire un nuovo ticket di supporto. Ti raccomandiamo inoltre di controllare i problemi noti correlati su questa pagina, verificare la versione della correzione permanente e confermare che hai installato le ultime versioni dei temi e dei plugin.
Problem: You are experiencing an issue where the src value in the img tag for product images on the translated version of your site is incorrect, showing a missing featured image. This problem occurs after images that were resized after they were translated. Solution: We found that the _wp_attachment_metadata was not updated for translations after the original image was replaced with a scaled one due to a script you ran. To address this, you can synchronize the metadata between the original and translated images by adding a script to your theme's functions.php file:
function wpml_sync_wp_attachment_metadata() {
// Get all original media attachments
global $wpdb;
$original_attachments = $wpdb->get_results("
SELECT element_id FROM {$wpdb->prefix}icl_translations
WHERE source_language_code IS NULL
AND element_type = 'post_attachment'
");
foreach ($original_attachments as $original_attachment) {
$original_id = $original_attachment->element_id;
// Get metadata from original
$metadata = get_post_meta($original_id, '_wp_attachment_metadata', true);
// Get translated posts for this attachment
$translations = $wpdb->get_results($wpdb->prepare("
SELECT element_id FROM {$wpdb->prefix}icl_translations
WHERE trid = (SELECT trid FROM {$wpdb->prefix}icl_translations WHERE element_id = %d AND element_type = 'post_attachment')
AND source_language_code IS NOT NULL
", $original_id));
foreach ($translations as $translation) {
$translated_id = $translation->element_id;
// Update translated post meta with the same metadata
update_post_meta($translated_id, '_wp_attachment_metadata', $metadata);
}
}
}
add_action('init', 'wpml_sync_wp_attachment_metadata');
After adding the script, reload your dashboard page and then remove the script. Ensure to back up your database before proceeding.
Please note that this code has not been thoroughly tested and is more of an idea for fixing the problem. If it doesn't work as expected, you or someone with appropriate expertise must make any necessary adjustments. The custom coding falls outside the support provided here.
This solution might not be relevant if it's 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 issue persists, please open a new support ticket at WPML support forum.
Problem: If you're experiencing issues where automatic translation stops on all articles, but credits continue to drop and articles remain stuck on 'translation in progress', this might be due to a known issue with Elementor. Solution: We recommend checking the following errata page for a detailed explanation and workaround: Elementor PHP Fatal Error. Please ensure you create a backup of your site and database before applying any changes. Additionally, we are in contact with Elementor to work on a permanent fix, which may not be included in the immediate next update of Elementor but is expected in a subsequent one.
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 you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
Problème : Vous essayez de traduire une page, un article ou un contenu personnalisé dans l'une des 4 langues disponibles sur votre site utilisant Elementor Pro et WPML. Vous rencontrez un problème où l'icône de crayon se transforme en roue crantée, et l'article n'est pas disponible dans la langue ou n'est pas mis à jour. Un message d'erreur apparaît : 'Advanced Translation Editor Error Logs - Job Download : Call to a member function get_main_id() on null' dans le fichier /wp-content/plugins/elementor-pro/core/utils.php:81. Solution : Nous vous recommandons de consulter et d'appliquer la solution proposée sur la page d'errata de WPML pour ce problème spécifique à Elementor Pro. Vous pouvez trouver les détails ici : https://wpml.org/errata/elementor-php-fatal-error-call-to-a-member-function-get_main_id-on-null/
Si cette solution ne résout pas votre problème ou semble obsolète, nous vous conseillons 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.
Problem: The client needed a way to customize the ALT text for flag images in the WPML language switcher to improve accessibility and comply with WCAG 1.1.1, without modifying WPML core files. Solution: We advised the client that currently, the best approach to achieve the desired ALT text customization is to follow the workaround provided in our errata, which involves modifying the 'class-wpml-ls-model-build.php' file.
Unfortunately, there are no suitable hooks or filters available for this customization, and implementing custom code would be complex. We also informed the client that there is no ETA for a permanent fix but have taken their feedback as a feature request. We recommended trying the workaround after ensuring a site backup.
Please note that this solution might be outdated or not applicable 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 this does not resolve your issue, please open a new support ticket at WPML support forum.
Problem: The client was experiencing an issue where after translating a layout page to 100% using WPML, the gear icon remained, indicating that the translation was not marked as completed. Solution: Initially, we suggested making a minor edit in the default language and updating it, followed by clearing the WPML cache and synchronizing jobs and translators via WPML->Support->Troubleshooting. When this did not resolve the issue, we requested temporary access to further investigate. Upon reviewing the ATE error logs, we identified a conflict with the Woodmart theme specifically related to translating product layouts. We directed the client to contact Woodmart support with the specific error for resolution. Meanwhile, the Woodmart support team suggested adding the following code to the
After implementing this code and clearing the cache, the issue was resolved.
Please note that this solution might be outdated or not applicable to your specific case. If the problem persists, 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 needed, do not hesitate to open a new support ticket at WPML support forum.
Problema: Il widget 'loop grid' di Elementor non funziona in modalità 'Current Query' quando WPML è attivo. Disabilitare WPML risolve il problema. Soluzione: Abbiamo identificato che lo slug dei prodotti in italiano era tradotto solo con 'p'. A causa delle lingue disabilitate, cambiare solo la traduzione non è sufficiente. È stato necessario lanciare una query sul database per eliminarle da lì. Dopo aver eseguito la query, cambia la traduzione dello slug. Questo dovrebbe risolvere il problema.
Se la soluzione proposta non risolve il problema o sembra non essere più rilevante, ti consigliamo di aprire un nuovo ticket di supporto. Ti raccomandiamo inoltre di controllare i problemi noti correlati, verificare la versione della correzione permanente e confermare di avere installato le ultime versioni dei temi e dei plugin. Per ulteriore assistenza, visita il forum di supporto WPML.