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()?
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/