Skip to content Skip to sidebar

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.

This topic contains 3 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 9 months ago.

Assisted by: Bruno Kos.

Author Posts
October 30, 2023 at 1:00 pm #14691561

ya-huiY

I just purchased your product "WPML Multilingual CMS" but can't activate it.
The error message is :
Plugin could not be activated because it triggered a fatal error.
Fatal error: Cannot redeclare icl_get_home_url() (previously declared in /home/clients/2e340de6c3efb8cf5e867369332c474e/sites/sakyapa.eu/wp-content/plugins/polylang/modules/wpml/wpml-legacy-api.php:21) in /home/clients/2e340de6c3efb8cf5e867369332c474e/sites/sakyapa.eu/wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php on line 55

I checked your blog and someone has similar issue, I deleted all of your related plug-ins and reinstalled manually, however, I couldn't activate it anyway. Please help me to solve this problem as soon as possible, thank you.

October 30, 2023 at 1:13 pm #14691839

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Thank you for contacting WPML support!

You need to remove Polylang because it uses the same function names as WPML such as that icl_get_home_url.

Regards,
Bruno Kos

October 30, 2023 at 1:22 pm #14691891

ya-huiY

Hi Bruno,
Thank you for your quick reply. Do you mean I need to deactivate Polylang and activate WPML again, or I need to delete Polylang forever?
I have used Polylang to create this website in 6 languages, if I delete Polylang, which means I need to use WPML to make this website in 6 languages again, right?

October 30, 2023 at 2:08 pm #14692721

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

I suppose you purchased WPML to replace Polylang given that they both provide the same thing - multilingual site.

But you can do this:
https://wpml.org/documentation/related-projects/migrate-polylang-wpml/

So migrate your translations from Polylang to WPML by following the above and then remove the Polylang from the site.

October 30, 2023 at 6:41 pm #14694495

ya-huiY

Thank you very much.