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 thread is resolved. Here is a description of the problem and solution.

Problem: I'm trying to install WPML but I get this error:

Fatal error: Cannot redeclare icl_get_home_url() (previously declared in /wp-content/plugins/polylang/modules/wpml/wpml-legacy-api.php:18) in /www/htdocs/w0184b26/(domain)/wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php on line 77 Solution: Try disabling the Polylang plugin before activating WPML

This topic contains 2 replies, has 2 voices.

Last updated by miaS-3 5 months ago.

Assigned support staff: Vincenzo.

Author Posts
May 11, 2019 at 12:27 pm #3790423

miaS-3

I am trying to: I'm trying to install WPML but I always get a notice:

Fatal error: Cannot redeclare icl_get_home_url() (previously declared in /www/htdocs/w0184b26/(domain)/wp-content/plugins/polylang/modules/wpml/wpml-legacy-api.php:18) in /www/htdocs/w0184b26/(domain)/wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php on line 77

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:

May 11, 2019 at 2:20 pm #3790639

Vincenzo
Supporter

Languages: English (English ) Italian (Italiano )

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

Hello, thank you for contacting WPML Support!

Can you please try disabling the Polylang plugin before activating WPML?

Please let me know if this solves the issue or if you need further details.

Thank you

May 11, 2019 at 3:10 pm #3790821

miaS-3

My issue is resolved now. Thank you!