Skip Navigation

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

Problem:
If you're trying to install required plugins using OTGS for WPML and nothing happens after clicking the 'install' button, or if you encounter a fatal error stating 'Cannot redeclare icl_get_home_url()', this might be due to a conflict with another multilingual plugin installed on your site, such as Polylang.
Solution:
We recommend deactivating any other multilingual plugins, like Polylang, to avoid conflicts and allow WPML to activate properly. If you are transitioning from Polylang to WPML, please follow our step-by-step guide available here: https://wpml.org/documentation/migrate-polylang-wpml/

If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to 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 1 reply, has 0 voices.

Last updated by Lucas Vidal de Andrade 2 months, 1 week ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
February 14, 2025 at 2:22 pm #16706802

georgiiT

Background of the issue:
I tried to install the required plugins using OTGS for WPML. After clicking the 'install' button, nothing happened. I attempted a manual installation, but it indicated that the plugin is already installed.

Symptoms:
I received an error: 'Plugin could not be activated because it triggered a fatal error. Fatal error: Cannot redeclare icl_get_home_url() (previously declared in /www/apache/domains/www.ollo.ee/htdocs/wp-content/plugins/polylang/modules/wpml/wpml-legacy-api.php:20) in /www/apache/domains/www.ollo.ee/htdocs/wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php on line 57.'

Questions:
Why does the installation process not proceed after clicking the 'install' button?
How can I resolve the fatal error related to icl_get_home_url()?

February 14, 2025 at 2:31 pm #16706837

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

This issue usually happens, when there's another translation/multilingual plugin installed, like Polylang. Is that the case?

If so, please deactivate it, so you can activate WPML. It's not recommended to have more than one Multilingual Website plugin installed, as it can lead to conflicts. If you are using Polylang, please refer to this documentation:
https://wpml.org/documentation/migrate-polylang-wpml/

Let me know.