Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Andreas W. 8 months, 1 week ago.

Assisted by: Andreas W..

Author Posts
May 22, 2024 at 11:23 am #15657634

daniel-viktorV

I am trying to rewrite the translations of the languages (language names to display). After saving, there is a fatal error (so the language cannot be rewritten):

Fatal error: Uncaught Error: Call to undefined method WP_Error::filter() in /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php:202 Stack trace: #0 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Object(WP_Error)) #1 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #2 [internal function]: WPML\FP\{closure}(Object(WP_Error)) #3 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Object(Closure), Array) #4 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(105): WPML\FP\{closure}(Object(WP_Error)) #5 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php(1378): WPML\FP\Left->bimap(Object(Closure), Object(Closure)) #6 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php(790): SitePress_EditLanguages->saveLanguageMapping(Array) #7 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php(118): SitePress_EditLanguages->update() #8 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/menu/languages.php(30): SitePress_EditLanguages->__construct(Object(WPML_Flags)) #9 /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-admin/admin.php(293): include('/home/clients/e...') #10 {main} thrown in /home/clients/e7149acc540458d9407de9b87ad0e91e/sites/eip-test.swiss-tomato.ch/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php on line 202

wpml fatal.jpg
May 22, 2024 at 11:55 am #15657902

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose.

If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

May 29, 2024 at 3:18 pm #15684711

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The error still occurs if you try to switch the language names.

I see an issue on WPML > Settings about missing translation engines. This seems to occur because WPML is not registered on this site.

WPML must be re-registered after each website migration or after changing the domain or domain provider.

1) Go to https://wpml.org/account/websites/

2) If the site URL is already registered, delete it from the list.

3) Now re-enter the site URL. This creates a new site key.

4) Click on "Show key" and copy it.

5) Enter the key under Plugins > Install > Commercial (tab) to re-register WPML. If WPML is still registered here, de-register it first.

Now, please test again. If the problem persists, please let me know.

The topic ‘[Closed] Fatal error when rewriting the translation of languages’ is closed to new replies.