Skip Navigation

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

Problem:
The client's website went offline after an update, displaying a WordPress error related to WPML, specifically an undefined method

WP_Textdomain_Registry::reset()

. Additionally, the client mentioned issues with the WPML key not being accepted and an error message stating that WPML cannot connect to wpml.org.

Solution:
For the error involving

WP_Textdomain_Registry::reset()

, we provided a custom search URL to help the client find existing tickets with the same issue that contain solutions:
https://www.google.com/search?q=site%3Awpml.org%2Fforums+%22WP_Textdomain_Registry%22
This issue is likely due to the client using older versions of WordPress, WPML, and the WPML String Translation add-on.

Regarding the other issues, we adhere to our Support Policy of handling only one issue per ticket to maintain focus and efficiency. Therefore, we created two separate tickets for the remaining issues:

The client will be notified via email when there are answers to these tickets.

Please note that the solution provided here might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

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 4 replies, has 2 voices.

Last updated by Mihai Apetrei 1 year, 4 months ago.

Assisted by: Mihai Apetrei.

Author Posts
February 16, 2024 at 6:20 pm #15312838

federicoF-23

After updating my website it went offline with a WordPress error related to wpml

[16-Feb-2024 17:10:29 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WP_Textdomain_Registry::reset() in /home/seaandculture/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php:139
Stack trace:
#0 /home/seaandculture/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(119): WPML\ST\MO\Hooks\LanguageSwitch->resetTranslationAvailabilityInformation()
#1 /home/seaandculture/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(73): WPML\ST\MO\Hooks\LanguageSwitch->changeMoObjects('en_US')
#2 /home/seaandculture/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php(48): WPML\ST\MO\Hooks\LanguageSwitch->switchToLocale('en_US')
#3 /home/seaandculture/public_html/wp-includes/class-wp-hook.php(326): WPML\ST\MO\Hooks\LanguageSwitch->languageHasSwitched('en')
#4 /home/seaandculture/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#5 /home/seaandculture/public_html/ in /home/seaandculture/public_html/wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LanguageSwitch.php on line 139

I renewed on your site but the error is still there. Your Key doesn't accept me, what should I do?

February 16, 2024 at 6:27 pm #15312842
federicoF-23

i pay renew e i put the key inside wordpress but the problem was not resolved

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

https://wpml.org/forums/topic/split-site-key-doesnt-match-invalid-site-key/

Schermata 2024-02-16 alle 19.25.00.png
Schermata 2024-02-16 alle 19.24.00.png
Schermata 2024-02-16 alle 19.22.58.png
February 16, 2024 at 6:29 pm #15312886

federicoF-23

This is the situation

Schermata 2024-02-16 alle 19.28.00.png
February 16, 2024 at 6:35 pm #15312916
federicoF-23

This is the message:

The WPML plugin cannot connect to wpml.org
WPML must connect to its server to check for new versions and security updates. Something in your network or security settings is preventing this. Please allow outbound communication to wpml.org to remove this notice.

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

https://wpml.org/forums/topic/split-the-wpml-plugin-cannot-connect-to-wpml-org-2/

February 16, 2024 at 7:33 pm #15312981

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

For the first error that you shared above, I created this custom search URL for you so that you can find the existing tickets for this exact same topic that already contain the solutions recommended by my colleagues:

hidden link

The issue here probably is that you are using older versions of WordPress + WPML + WPML String Translation add-on.

In regards to the second and third error messages, Per our Support Policy, we can handle only one issue per ticket.

Continuing with one issue per ticket helps not only supporters to focus on one issue at once but also enables other users to find solutions to their questions faster.

So let's tackle point number 1 in this ticket. I created 2 new tickets for you for the other issues that you mentioned and you can find them here:

- https://wpml.org/forums/topic/split-site-key-doesnt-match-invalid-site-key/

- https://wpml.org/forums/topic/split-the-wpml-plugin-cannot-connect-to-wpml-org-2/

You will be notified via email when there's an answer on those other two tickets as well.

Mihai Apetrei