Skip Navigation

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

Problem:
You are trying to access the Translation Management and got the migration banner.
Solution:
If you're experiencing this issue, we recommend you follow these steps:
1) Ensure you back up your database.
2) Navigate to WPML → Support and click on the Troubleshooting link.
3) On the WPML Troubleshooting page, click the Force-enable WPML’s Advanced Translation Editor button.

This solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.

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

Last updated by Andrey 4 months, 1 week ago.

Assisted by: Andrey.

Author Posts
August 29, 2024 at 11:34 pm #16122470

Phil Cox

Background of the issue:
I am trying to view Translation Management or modify language labels. The issue can be seen at hidden link. WordPress sent me a notification about a fatal error with the WPML Multilingual CMS plugin. The error details are as follows: An error of type E_ERROR was caused in line 202 of the file /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php. Error message: Uncaught Error: Call to undefined method WP_Error::filter() in /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php:202. Stack trace: #0 [internal function]: WPMLFPFns::WPMLFP{closure}(Object(Closure), Object(WP_Error)) #1 /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array) #2 [internal function]: WPMLFP{closure}(Object(WP_Error)) #3 /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(50): call_user_func_array(Object(Closure), Array) #4 /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(105): WPMLFP{closure}(Object(WP_Error)) #5 /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php(1378): WPMLFPLeft->bimap(Object(Closure), Object(Closure)) #6 /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php(790): SitePress_EditLanguages->saveLanguageMapping(Array) #7 /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/menu/edit-languages.php(118): SitePress_EditLanguages->update() #8 /nas/content/live/hrmi/wp-content/plugins/sitepress-multilingual-cms/menu/languages.php(30): SitePress_EditLanguages->__construct(Object(WPML_Flags)) #9 /nas/content/live/hrmi/wp-admin/admin.php(293): include('/nas/content/li...') #10 {main} thrown.

Symptoms:
I expected to see the Translation Management page, but instead, I got a message saying 'This site has moved to a new location'. Additionally, there has been a critical error on the website, and WordPress sent a notification about a fatal error with the WPML Multilingual CMS plugin.

Questions:
Why am I seeing the message 'This site has moved to a new location'?
How can I resolve the critical error caused by the WPML Multilingual CMS plugin?

August 30, 2024 at 2:13 pm #16125217

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

The issue appears to be triggered by the "Site is Moved or Copied" message at the top of the page. Please choose the appropriate option in the message.

Please refer to the following guides for more information:
- https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/
- https://wpml.org/documentation/automatic-translation/using-automatic-translation-with-custom-languages/

August 31, 2024 at 12:11 am #16126831

Phil Cox

Thank you for your reply Andrey. Please could you address the question I asked?

The error message says "This site has moved to a new location" yet the site is at the same location.
So the options provided do not make sense.

August 31, 2024 at 12:13 am #16126832

Phil Cox

One of your suggested texts is about custom languages. HRMI does not use a custom language.

August 31, 2024 at 12:15 am #16126833

Phil Cox

Here is the confusing option:

If you didn't intend to move this site to hidden link, you can indicate that this site should be at hidden link.

What on earth is that supposed to mean?

September 2, 2024 at 2:50 pm #16132553

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

I received your feedback. I apologize for not addressing your questions earlier.

The banner showed up because something changed in your installation. I'm not certain what caused it. To resolve the critical error, you need to remove the banner.

Another potential solution is available at https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/#using-wpml-on-two-domains. Could you please try the workaround using the link provided?

September 2, 2024 at 8:09 pm #16133478

Phil Cox

Hi Andrey, thank you for your reply.

You said: "The banner showed up because something changed in your installation. I'm not certain what caused it. To resolve the critical error, you need to remove the banner."

Please can you clarify how to remove the banner when the text on it does not make sense?

You said: "Another potential solution is available at https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/#using-wpml-on-two-domains. Could you please try the workaround using the link provided?"

I followed your link and it led to two paragraphs:

1. "Share credits across sites by linking the copy to an existing automatic translation account."

We don't need to do this. STAGING doesn't require any credits.

2. "Using WPML on Two Domains Pointing to the Same Website".

I'm guessing you are haven't read the background to this issue. They are 2 websites. The STAGING domain points to the STAGING website, and the PRODUCTION domain points to the PRODUCTION website.

September 3, 2024 at 12:26 pm #16135591

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback.

Here is an outline of the steps to remove the banner:

1) Back up your database.

2) To WPML → Support, click on the Troubleshooting link.

3) On the WPML Troubleshooting page, click the Force-enable WPML’s Advanced Translation Editor button.

September 3, 2024 at 8:22 pm #16137785

Phil Cox

Thank you so much Andrey, for uncovering this hidden fix.

I found the button you refer to and clicking on it removed the banner with its confusing instructions.

I now have access to "Translation Management" and am able to modify language labels at Languages > Edit Languages.

It would be good to make this fix more visible as we have been unable to access these pages for a week.

Thanks again,
Phil.

September 3, 2024 at 9:12 pm #16137894

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

Thank you for your feedback, Phil. I am sorry for not being clear from the very beginning. Have a lovely evening or morning 🙂