Salta la navigazione

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Nessun supporter è disponibile a lavorare oggi sul forum Italian. Sentitevi liberi di creare ticket e li gestiremo il prima possibile quando saremo online. Grazie per la comprensione.

Etichettato: 

Questo ticket contiene 2 risposte, ha 2 voci.

Ultimo aggiornamento da mariaP-18 1 anno, 6 mesi fa.

Assistito da: Bigul.

Autore Messaggi
Novembre 7, 2022 a 12:20 pm

mariaP-18

Sto tentando di: accedere alla versione in lingua straniera del sito

Link a una pagina dove è possibile vedere il problema: link nascosto

Mi aspettavo di vedere: la versione italiana, inglese e francese del sito

Invece ho ottenuto: un errore come mostrato nella foto allegata.
Ho disattivato tutti i plugin di WPML e il sito è tornato ad essere visibile.

Di cosa si stratta e come posso risolvere?

Qui il testo del messaggio di errore:

"Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /home/customer/www/agriturismomalapezza.it/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139 Stack trace: #0 /home/customer/www/agriturismomalapezza.it/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPML\ST\MO\Hooks\LanguageSwitch->resetTranslationAvailabilityInformation() #1 /home/customer/www/agriturismomalapezza.it/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPML\ST\MO\Hooks\LanguageSwitch->changeMoObjects('en_US') #2 /home/customer/www/agriturismomalapezza.it/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(48): WPML\ST\MO\Hooks\LanguageSwitch->switchToLocale('en_US') #3 /home/customer/www/agriturismomalapezza.it/public_html/wp-includes/class-wp-hook.php(310): WPML\ST\MO\Hooks\LanguageSwitch->languageHasSwitched('en') #4 /home/customer/www/agrit in /home/customer/www/agriturismomalapezza.it/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139
Si è verificato un errore critico sul tuo sito web."

Screenshot_1.jpg
Novembre 7, 2022 a 12:36 pm #12399577

Bigul
Supporter

Lingue: Inglese (English )

Fuso orario: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

WordPress 6.1 introduces breaking changes that require updating the WPML Multilingual CMS and WPML String Translation prior to updating the WordPress. You can see the details here: https://wpml.org/changelog/2022/10/wpml-4-5-12-updates-for-wordpress-6-1/

Therefore both WPML and WPML String Translation add-on need to be updated to the latest version.

As your site already uses the WordPress 6.1 version. Could you please follow the below steps and see if this resolves your issue:

1. Please take a full site backup{mandatory} of your site first for safety reasons.

2. Please update all WPML plugins to the latest version. The latest version of WPML Multilingual CMS is 4.5.13 and WPML String Translation is 3.2.3, please update manually using FTP or cPanel and see if this resolves your issue.

To do a manual update please follow these steps:

- Deactivate the existing WPML plugin and add-ons.

- Delete the plugin files – this does not delete your translations. You will simply delete the plugin files from your "wp-content/plugins" folder, NOT the database records.

- Download the updated plugins from our servers (https://wpml.org/account/downloads/) and upload them to the plugin directory.

- Activate the WPML plugin and add-ons.

Here is a doc for more details: https://wpml.org/faq/updating-wpml-manually/

Please let me know if this resolves your issue or if you need further assistance with this issue.

Please note that, if you update manually, you won't lose any data as the data is saved in the database but you can create a full website backup before if you want to feel extra safe.

--
Thanks!

Bigul

Questo ticket è stato chiuso. Se sei un cliente di WPML e hai bisogno di aiuto, apri un nuovo ticket di assistenza.