Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problema:
Il cliente ha riscontrato un problema con l'aggiornamento di WPML che ha causato il malfunzionamento del sito, con un errore specifico relativo alla funzione

str_contains()

.

Soluzione: Aggiorna la tua versione di PHP alla version 8.0

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Alejandro 1 year, 5 months ago.

Assisted by: Alejandro.

Author Posts
December 13, 2023 at 4:33 pm #15057623

robertaA

Hi, you closed my previous ticket, but the problem is still present and from what I see I'm not the only one. I apologize for not being able to send the backup copy sooner as Bobby requested. How do I send you the backup now?

Below I paste the information of the closed ticket.

Hi, after updating theme and plugins WPML Multilingual CMS stopped working. On the WP dashboard appears the message: successful loading of one or more plugins failed.
WordPress version 6.4.1
Tema corrente: process-factory (versione 1.0)
Plugin corrente: WPML Multilingual CMS (versione 4.6.8)
Versione PHP 7.4.33

Error ditails
====================
Un errore di E_ERROR è stato causato nella linea 123 del file /web/htdocs/www.processfactory.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/wpml-request.class.php. Messaggio di errore: Uncaught Error: Call to undefined function str_contains() in /web/htdocs/www.processfactory.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/request-handling/wpml-request.class.php:123
Stack trace:
#0 /web/htdocs/www.processfactory.it/home/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(981): WPML_Request->show_hidden()
#1 /web/htdocs/www.processfactory.it/home/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/translations-file/wpml-st-translations-file-locale.php(142): SitePress->get_active_languages()
#2 /web/htdocs/www.processfactory.it/home/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/translations-file/wpml-st-translations-file-locale.php(61): WPML_ST_Translations_File_Locale->get_locales()
#3 /web/htdocs/www.processfactory.it/home/wp-content/plugins/wpml-string-translation/classes/translations-file-scan/translations-file/wpml-st-translations-file-locale.php(38): WPML_ST_Translations_File_Locale->get_from_mo_file()
#4 /web

Please, let me know how to solve this problem, thanks. Barbara

Schermata 2023-11-27 alle 13.45.59.png
NOVEMBER 27, 2023 AT 9:23 PM#14934825

Bobby
Supporter

Languages:
English (English )

Timezone:
America/Los_Angeles (GMT-08:00)

Hello,

If possible, please try doing a manual update.

To do a manual update please follow these steps:

1. Backup your database – see for example: http://wordpress.org/extend/plugins/wp-db-backup/

2. Deactivate the existing WPML plugin and add-ons.

3. 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.

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

5. Activate the WPML plugin and add-ons.

Let me know your results, please.

NOVEMBER 28, 2023 AT 4:15 PM#14942049

robertaA
Hi Bobby, I followed your instructions, but a disaster happened, the site went completely crazy, instead of graphics all lines of code. Fortunately I restored a backup copy. Could you tell me please to avoid these problems, the best way to update the plugin? Thanks

NOVEMBER 29, 2023 AT 2:30 AM#14945585

Bobby
Supporter

Languages:
English (English )

Timezone:
America/Los_Angeles (GMT-08:00)

Thank you for updating me, I am sorry to hear that happened, not sure what could of possibly triggered this issue as updating WPML should be an issue free procedure.

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

NOVEMBER 30, 2023 AT 10:11 AM#14960565

Thank you

Best

December 14, 2023 at 4:55 pm #15067169

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Ciao!

Potresti per favore disinstallare WPML e i suoi add-on poi scaricare una versione nuova da https://wpml.org/account/downloads/ e caricala direttamente da Plugins > Aggiungi nuovo?

Questo errore è successo perché mancava una funzione, ma a volte questo potrebbe succedere perché hai aggiornato prima WPML anziché i suoi add-on.

Prima scarica WPML, attivalo, vedi se ti esce l'errore e poi prova ad installare gli add-on ad uno ad uno.

Provaci e fammi sapere come va.

----------------
P.S: il ticket di prima si è chiuso per inattività (in modo automatico)

December 14, 2023 at 7:52 pm #15068455

robertaA

Ciao, ho già provato, ma non è la prima cosa che mi ha fatto fare Bobby? Ho chiesto la cortesia di riprendere da dove eravamo rimasti, Bobby voleva copia del sito evidentemente per testare la procedura più idonea da adottare nel caso specifico.

December 15, 2023 at 8:58 am #15070385

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Avevo controllato quello che ti aveva chiesto bobby ed era una variazione di quello che ti ho chiesto io (disinstallare e cancellare gli add-on sono importanti in questo test).

Per favore fallo, se è possibile con la debug.log attiva e poi inviami tutto il file debug.log

Per attivarlo, puoi seguire questa guida: https://wpml.org/documentation/support/debugging-wpml/

Dopo di aver inserito nel tuo file wp-config.php il codice presente nel link di sopra, cerca di ricreare il problema e poi vai alla cartella "wp-content" della tua installazione WordPress.

Ti chiedo questo perché sospetto che c'è qualche passaggio in più che ci manca per poterlo poi ricreare in un sito di staging.

Una volta fatto questo, se il problema continua, oltre al debug.log inviami anche una copia del sito (tramite dropbox, wetransfer o qualunque sito simile che ti piaccia). usa un plugin quale wp all in one migration, e nel file da esportare escludi i file media e le revisioni altrimenti il file sarà troppo pesante e ci metterò di più per risponderti per via del tempo richiesto per fare un import successivamente.

December 19, 2023 at 5:40 pm #15095673
robertaA

Ciao Alejandro, ho installato una copia di staging del sito e seguito alla lettera le tue istruzioni. L'aggiornamento funziona! Grazie mille.
Ho un problema di aggiornamento WPML su un altro sito che non è mai stato risolto, ti chiederei la cortesia di aiutarmi anche con quello.
Questo è il ticket che avevo aperto e ti copio anche la risposta di una tua collega che non è stata per niente di aiuto. Al che io ho lasciato perdere e mi sono limitata a non aggiornare più il sito, ma adesso ho bisogno di farlo.

Buongiorno,
il sito in questione (oleificiovaldorcia.it) ha la versione 6.0.4 di WordPress ed è realizzato con il tema TheGem (attivo il tema child). Ho fatto gli aggiornamenti di tema e plugin (non era la prima volta, erano già stati fatti in passato) e ho notato che il sistema impiegava tantissimo tempo ed era strano: alla fine il risultato è stato che la sezione inglese del sito era scomparsa, online non c'era più neanche la bandiera delle lingue. Lato menu di WordPress, WPML non era più tra i plugin attivi e le pagine inglesi del sito si trovavano mescolate a quelle italiane. Ho ripristinato immediatamente un backup precedente dato che, specie in questo periodo, la versione inglese è fondamentale. Vorrei aiuto in merito. Grazie. Barbara

MAGGIO 18, 2023 AT 11:21 AM#13671279

Laura
Supporter

Languages:
Inglese (English )
Italiano (Italiano )

Timezone:
Europe/Rome (GMT+01:00)

Salve,

grazie per averci contattato.

Con "tema e plugin" intendi l'aggiornamento di tutti i plugin o solo di quelli relativi al tema? Perché anche WPML deve essere aggiornato.

Inoltre, perché String Translation non è installato? E' necessario sia per TheGem che per WPBakery

Prova ad aggiornare prima WPML (magari passando prima alla versione 4.5.14 e poi alla 4.6.3) e poi il tema. Al momento se sul sito non si riscontrano problemi è impossibile capire cosa sia successo.

Grazie Alejandro, attendo tue notizie

Cordialmente

Barbara

New threads created by Alejandro and linked to this one are listed below:

https://wpml.org/forums/topic/aggiornare-un-sito-con-una-versione-vecchia-di-wpml/

December 20, 2023 at 2:42 pm #15103679

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Sono contento che uno dei problemi sia risolto. separo il ticket per lavorare con questo nuovo aggiornamento perché ci sono delle domande che vorrei farti per poter capire meglio cosa si può fare 🙂

Ci vediamo nel prossimo ticket.