This thread is resolved. Here is a description of the problem and solution.
Problem: When I enable WPML I get this error: PHP Fatal error: Uncaught Error: Call to undefined method stdClass::is_enabled()
Solution: There is a corrupt record in the database. To solve the issue, try by manually changing the value for the wpml_language_switcher option in the wp-options table to be the same as a new WPML installation.
29% of people find this useful.
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: Compatibility
Related documentation:
This topic contains 14 replies, has 2 voices.
Last updated by valerioF 2 years, 3 months ago.
Assigned support staff: Vincenzo.
Author | Posts |
---|---|
November 6, 2018 at 9:23 am | |
valerioF |
Hi, Regards |
November 6, 2018 at 3:25 pm #2881614 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Hello, thank you for contacting WPML Support! It seems like the issue could be caused by some Language Switcher setting in the database. To further debug the problem I’d like to replicate your site locally. I would need a site snapshot if possible. If you already know how Duplicator works ★ Duplicator Instructions If the file is too large (more than 200M), please use the Duplicator file filters to remove the cache, the wp-uploads directory, the media, and the archive files. Send me the link to the archive file (you probably want to use Google Drive, Dropbox, or similar services, as the snapshot file will be quite big) Your next reply will be private, which means that only you and I will be able to see it and have access to it. You can paste the link to the file there. You can also share the credentials to your website. I will then download the file from the admin panel. Please let me know if you need help creating the Duplicator package. Thank you |
November 6, 2018 at 5:23 pm | |
November 7, 2018 at 3:43 pm #2886060 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Salve Valerio, ho provato a scaricare il file dal link ma ricevo l'errore seguente: Ho comunque scaricato il file Duplicator dal sito utilizzando le credenziali fornite. Se lo desideri adesso puoi rimuovere il file. Ti aggiorno non appena ho novità. Grazie |
November 7, 2018 at 5:36 pm #2886763 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Buonasera Valerio, un veloce aggiornamento per comunicarti che il ticket è stato scalato al supporto di secondo livello. Ti aggiorno non appena ho novità. Grazie per la pazienza |
November 8, 2018 at 5:33 pm #2890316 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Buonasera Valerio, il nostro supporto di secondo livello ha trovato la causa del problema. Per risolvere il problema nel tuo sito, sono necessari questi passaggi: 1. Puoi effettuare un backup completo del sito? Una volta che mi confermerai che questi due passaggi sono stati effettuati, il supporter di secondo livello accederà al tuo sito ed utilizzerà il plugin ARI Adminer per correggere il problema nelle opzioni di WPML conservate nel database. Rimango in attesa di conferma. Grazie |
November 8, 2018 at 5:50 pm #2890340 | |
valerioF |
Buonasera Vincenzo, Valerio |
November 8, 2018 at 5:56 pm #2890346 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Salve Valerio, ho comunicato al supporter di secondo livello che può effettuare l'intervento. La soluzione è un po' complessa e richiede la modifica di un'opzione nel database. Fammelo sapere e ti attivo un'altra risposta privata per passarmi le credenziali del sito online. Grazie |
November 8, 2018 at 6:03 pm #2890388 | |
valerioF |
A questo punto direi di intervenire direttamente sul sito online senza far fare il doppio lavoro. |
November 8, 2018 at 6:05 pm #2890391 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Perfetto, ti attivo la risposta privata. Puoi confermarmi che il problema è presente anche nel sito online? Grazie |
November 8, 2018 at 6:09 pm | |
November 8, 2018 at 6:15 pm #2890427 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Grazie delle credenziali. Al momento però il problema non sembra presente nel sito online. Da quello che vedo, WPML è attivo. Puoi dirmi quali sono i passaggi per riprodurre il problema? In questo modo forse possiamo capirne l'origine. Grazie |
November 8, 2018 at 6:19 pm #2890450 | |
valerioF |
Attivando i plugin per l'SSL il sito ha problemi. |
November 8, 2018 at 6:36 pm #2890476 | |
Vincenzo Supporter
Languages: English (English ) Italian (Italiano ) Timezone: Europe/London (GMT+00:00) |
Il supporto di secondo livello ha effettuato l'intervento nel sito di prova. Puoi verificare se il problema è effettivamente risolto? Verifica inoltre se il problema si ripresenta una volta attivati i plugin SSL. Grazie |
November 9, 2018 at 7:27 am #2892103 | |
valerioF |
Buongiorno Vincenzo, Valerio |