Skip Navigation

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 2 voices.

Last updated by Mihai Apetrei 1 year, 8 months ago.

Assisted by: Mihai Apetrei.

Author Posts
September 1, 2023 at 4:03 pm #14328017

Mario Mecarozzi

I'm trying to activate the plugin but it generate a fatal error on the website:

While activating it:
PHP Fatal error: Cannot redeclare icl_get_home_url() (previously declared in /home/505420.cloudwaysapps.com/ahjahxnqem/public_html/wp-content/plugins/polylang/modules/wpml/wpml-legacy-api.php:21) in /home/505420.cloudwaysapps.com/ahjahxnqem/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php on line 55

I can't share the info because I can't activate the plugin

September 3, 2023 at 8:00 pm #14332789

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

The error mentions that there's an existing function that has already been declared in the Polylang plugin which is currently active.

It is not recommended to use more than one active multilingual plugin on the site because issues like this can occur.

Please disable Polylang and then try to re-enable WPML.

Mihai Apetrei