Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.
Problema: Il sito ha smesso di funzionare a causa di un errore critico generato dal plugin WPML String Translation. L'errore è dovuto all'utilizzo di una funzione non più supportata in PHP 8. Soluzione: Aggiornare sia il plugin WPML che WPML String Translation alle loro ultime versioni. Poiché la notifica di aggiornamento non appare, è necessario aggiornare manualmente i plugin. Segui questa guida per capire il processo: https://wpml.org/faq/updating-wpml-manually/. Assicurati di effettuare un backup completo del sito prima di procedere.
Se la soluzione proposta non risolve il problema o se sembra non essere più rilevante, ti consigliamo di aprire un nuovo ticket di supporto. Ti raccomandiamo inoltre di controllare i problemi noti su https://wpml.org/known-issues/, verificare la versione della correzione permanente e confermare di avere installato le ultime versioni di temi e plugin. Per ulteriore assistenza, visita il nostro forum di supporto WPML.
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.
Contesto del problema:
Il sito ha smesso di funzionare. L'assistenza dell'hosting mi ha detto di contattare voi perchè il problema è causato dal plugin WPML. Allego report: Versione di WordPress 6.6.1, Tema attivo: Avada Child (versione 1.0.0), Plugin corrente: WPML String Translation (versione 2.10.2), Versione PHP 8.2.22. Un errore di E_ERROR è stato causato nella linea 15 del file /home/customer/www/edelmodica.com/public_html/wp-content/plugins/wpml-string-translation/inc/functions.php. Messaggio di errore: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/customer/www/edelmodica.com/public_html/wp-content/plugins/wpml-string-translation/inc/functions.php:15 Stack trace: #0 /home/customer/www/edelmodica.com/public_html/wp-includes/class-wp-hook.php(324): icl_st_init('') #1 /home/customer/www/edelmodica.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/edelmodica.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/customer/www/edelmodica.com/public_html/wp-settings.php(555): do_action('plugins_loaded') #4 /home/customer/www/edelmodica.com/public_html/wp-config.php(99): require_once('/home/customer/...') #5 /home/customer/www/edelmodica.com/public_html/wp-load.php(50): require_once('/home/customer/...') #6 /home/customer/www/edelmodica.com/public_html/wp-admin/admin.php(34): require_once('/home/customer/...') #7 /home/customer/www/edelmodica.com/public_html/wp-admin/plugins.php(10): require_once('/home/customer/...') #8 {main} thrown
Sintomi:
Errore critico causato da WPML. Messaggio di errore: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /home/customer/www/edelmodica.com/public_html/wp-content/plugins/wpml-string-translation/inc/functions.php:15
Domande:
Come posso risolvere l'errore critico causato dal plugin WPML?
C'è una versione aggiornata del plugin WPML String Translation che risolve questo problema?
Hello There,
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.
To reduce the waiting time, I took this ticket and responded in English. Please let me know if you're okay with it or if you want to continue the conversation in Italian language. I will check and forward this ticket to one of our Italian-speaking supporters to assist you in the Italian language.
The issue you're encountering appears to be due to using outdated versions of the WPML and String Translation plugins. A function used in the earlier version of String Translation is deprecated in PHP 7.4 and removed entirely in PHP 8, which is likely causing the Fatal error.
Please update both the WPML and String Translation plugins to their latest versions and check if they helps in solving the issue. Since the update notice isn't appearing, you'll need to manually update the plugins. You can follow this guide to understand the process. Be sure to take a full backup of your site before proceeding.
Let me know if the information helps or if you need further assistance in this matter. I will be happy to help.