Problème : Vous rencontrez un problème où les traductions de chaînes d'un plugin custom n'apparaissent que lorsque l'option 'Auto enregistrer les chaînes pour la traduction' est activée. Solution : Nous vous recommandons de suivre ces étapes pour résoudre ce problème, en commençant par les solutions faciles avant de passer aux solutions avancées. Assurez-vous de faire une sauvegarde de votre site avant de commencer.
Solutions faciles : - Ajoutez le domaine de texte à « Options de localisation > Charger automatiquement le fichier .mo du thème en utilisant “load_textdomain” » sous WPML > Localisation du thème et des plugins. - Générez le fichier MO à partir de WPML > Support > Troubleshooting > « Show custom MO Files Pre-generation dialog box ». - Assurez-vous que le CHARSET de la base de données configuré dans config.php est utf8mb4. - Allez dans WPML > Languages > Edit languages > Réenregistrez les paramètres à cet endroit. - Supprimez complètement les chaînes et enregistrez-les à nouveau, puis retraduisez-les. - Allez sur WPML > Support > troubleshooting et essayez tous les boutons suivants : https://prnt.sc/rqcSNCt3DVLY
Solutions avancées : - Vérifiez comment ces chaînes sont appelées dans votre code et changez le domaine de la chaîne : Analyser et retraduire les chaînes via WPML String translation. - Modifier le texte de la chaîne. - Vérifiez ce que le plugin utilise pour charger le domaine du texte : Le hook utilisé pour charger le domaine de texte (pourrait utiliser init au lieu de plugin_loaded). Cela peut entraîner le chargement du domaine de texte avant que WPML ne puisse le gérer.
Si ces solutions ne résolvent pas votre problème ou si elles semblent obsolètes ou inapplicables à votre cas, nous vous recommandons de consulter les problèmes connus, de vérifier la version du correctif permanent et de confirmer que vous avez installé les dernières versions des thèmes et plugins. N'hésitez pas à ouvrir un nouveau ticket de support si nécessaire.
Problem: Nach dem Aktualisieren von WordPress und WPML erscheinen Warnmeldungen beim Speichern von statischen Seiten. Die Warnungen beziehen sich auf undefinierte Array-Schlüssel und Header-Informationen, die nicht geändert werden können. Solution: Wenn Sie ähnliche Warnmeldungen auf Ihrer Website sehen, empfehlen wir Ihnen, die folgenden Einstellungen in Ihrer
wp-config.php
Datei zu überprüfen und gegebenenfalls anzupassen:
// Enable WP_DEBUG mode<br />define( 'WP_DEBUG', true );<br /><br />// Enable Debug logging to the /wp-content/debug.log file<br />define( 'WP_DEBUG_LOG', true );<br /><br />// Disable display of errors and warnings<br />define( 'WP_DEBUG_DISPLAY', false );<br />@ini_set( 'display_errors', 0 );<br /><br />// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)<br />define( 'SCRIPT_DEBUG', true );
Diese Einstellungen verhindern die Anzeige von Warnmeldungen auf Ihrer Website, ohne die Funktionalität zu beeinträchtigen. Sie können die
wp-config.php
Datei so belassen, wie sie ist.
Bitte beachten Sie, dass diese Lösung möglicherweise veraltet oder nicht auf Ihr Problem zutreffend ist. Wir empfehlen Ihnen, die bekannten Probleme zu überprüfen, die Version der dauerhaften Lösung zu bestätigen und sicherzustellen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Sollten weiterhin Probleme auftreten, zögern Sie nicht, ein neues Support-Ticket zu eröffnen. Besuchen Sie dazu unser Support-Forum.