Sauter la navigation

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Marqué : 

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par Bruno Kos Il y a 1 année et 2 mois.

Assisté par: Bruno Kos.

Auteur Articles
août 31, 2023 à 3:10 pm #14322089

benoitF-4

Bonjour, j'ai un problème sur mon site. il y a 3 langues : français (principale) espagnol et anglais.
Lorsque je vais sur la version anglaise j'ai une erreur lien caché
Les versions Française et Espagnole fonctionnent correctement

69661cde409866737ec8247a1054fb90.png
4d7b54bc07bd3833a8f75ded37eca5a3.png
Septembre 1, 2023 à 6:37 am #14324403

Bruno Kos
Supporter

Les langues: Anglais (English ) Allemand (Deutsch ) Français (Français )

Fuseau horaire: Europe/Zagreb (GMT+01:00)

Bonjour,

Accédez à votre serveur via FTP et ouvrez wp-config.php (à la racine de votre installation WordPress).
Insérez ces lignes just avant /* That's all, stop editing! Happy blogging. */

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Faites vos tests et si le problème se reproduit, accédez au fichier debug.log ici: /wp-content/debug.log et copiez/collez l'information dans votre prochaine réponse.
Plus d'info: https://wordpress.org/support/article/debugging-in-wordpress/

Septembre 1, 2023 à 6:37 am #14324405

Bruno Kos
Supporter

Les langues: Anglais (English ) Allemand (Deutsch ) Français (Français )

Fuseau horaire: Europe/Zagreb (GMT+01:00)

Vérifiez également les journaux du serveur car l'erreur 500 est une erreur du serveur.

Septembre 1, 2023 à 3:15 pm #14327737

benoitF-4

Bonjour voici les infos du debug.log, il semblerait que cela soit provoqué par le fichier /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/OptionManager.php

[code]
[01-Sep-2023 15:07:00 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:07:01 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:07:32 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:07:33 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:08:14 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /home/natureetws/boutique/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/OptionManager.php on line 24
[01-Sep-2023 15:08:14 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[01-Sep-2023 15:08:14 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[01-Sep-2023 15:09:02 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:09:03 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:09:33 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/natureetws/boutique/wp-includes/functions.php on line 650
[01-Sep-2023 15:09:33 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/natureetws/boutique/wp-includes/functions.php on line 650
[01-Sep-2023 15:09:33 UTC] PHP Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
[01-Sep-2023 15:11:02 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:02 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:29 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /home/natureetws/boutique/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/OptionManager.php on line 24
[01-Sep-2023 15:11:29 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[01-Sep-2023 15:11:29 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[01-Sep-2023 15:11:45 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:47 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:48 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:48 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:49 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:49 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:54 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:54 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:55 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:55 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:55 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:56 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:57 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:11:58 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:11:59 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:12:00 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:12:02 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:12:03 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:12:04 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:12:05 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:12:05 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:12:06 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:12:16 UTC] PHP Notice: Function is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/natureetws/boutique/wp-includes/functions.php on line 5905
[01-Sep-2023 15:12:16 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/natureetws/boutique/wp-includes/functions.php on line 650
[01-Sep-2023 15:12:16 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/natureetws/boutique/wp-includes/functions.php on line 650
[01-Sep-2023 15:12:16 UTC] There was an error while calling the api at "lien caché", status code : 403
[01-Sep-2023 15:12:23 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /home/natureetws/boutique/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/OptionManager.php on line 24
[01-Sep-2023 15:12:23 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[/code]

et concernant les logs du serveur web :
2607:5300:60:6558:: boutique.nature-partage.com - [01/Sep/2023:17:11:02 +0200] "GET /?action=wpfastestcache&type=preload HTTP/1.1" 200 284 "-" "EasyCron/1.0 (lien caché)"
176.145.53.85 shop.nature-partage.com - [01/Sep/2023:17:11:05 +0200] "GET /regie33 HTTP/1.1" 500 - "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36"
91.134.248.253 boutique.nature-partage.com - [01/Sep/2023:17:11:35 +0200] "POST /wp-cron.php?doing_wp_cron=1693581095.9604120254516601562500 HTTP/1.1" 200 25 "-" "WordPress/6.3.1; lien caché"

Que dois-je comprendre de ce log là ?

Septembre 4, 2023 à 6:05 am #14333575

Bruno Kos
Supporter

Les langues: Anglais (English ) Allemand (Deutsch ) Français (Français )

Fuseau horaire: Europe/Zagreb (GMT+01:00)

Pouvez-vous installer String Translation 3.2.8-b.2 https://wpml.org/download/wpml-string-translation/?section=changelog et vérifier si le problème se reproduit?

Septembre 4, 2023 à 6:59 am #14333817

benoitF-4

Bonjour Bruno merci beaucoup pour votre réponse.
En effet après cette mise à jour la version anglaise fonctionne à nouveau 🙂
merci !