Skip Navigation

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

Problem:
The client was unable to activate the WPML plugin and encountered a fatal error indicating a function redeclaration conflict with Polylang.
Solution:
1. We advised the client to deactivate the Polylang plugin.
2. We explained that running multiple multilingual plugins simultaneously is not recommended due to potential conflicts.
3. After following our advice, the client successfully activated the WPML plugin.

If the solution provided here is not relevant to your case, because it might be outdated or not applicable, we encourage you to open a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us in the 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 5 replies, has 2 voices.

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

Assisted by: Mihai Apetrei.

Author Posts
February 16, 2024 at 2:03 pm #15311975

dianaN-5

Hello,

I installed the plugin but I can't activate it. How should I proceed?

Regards,

Carlos Sousa

img1.jpg
February 16, 2024 at 2:30 pm #15312051

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi Carlos.

What happens if you click "Ativar"?

Do you see any error message or what happens?

Clicking that should activate the WPML plugin and then, at the top, you should see a button to go through the WPML Wizard.

Please let us know.

Mihai Apetrei

February 16, 2024 at 3:24 pm #15312221

dianaN-5

Hi Mihai,

I get the following error:

Fatal error: Cannot redeclare icl_get_home_url() (previously declared in /home/plvevent/public_html/wp-content/plugins/polylang/modules/wpml/wpml-legacy-api.php:21) in /home/plvevent/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/template-functions.php on line 55

The plugin was taking a long time to activate automatically. I updated the page.
Did I trigger a second installation?
Could it be a PHP error? We are using version 7.4

Thanks for your support.

Carlos

February 16, 2024 at 3:28 pm #15312252

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi Carlos.

Please deactivate the Polylang plugin first.

The error says that there's a function that exists in WPML that is already declared in Polylang so that's conflicting.

It is not recommended to run multiple multilingual plugins at once because conflicts like this can happen 🙂

Hope that helps!

Mihai

February 16, 2024 at 3:42 pm #15312319

dianaN-5

Ahahahahah, I was suspecting that. SORRY!!!

Active plugin. Thank you very much!
Once again, I apologize for my nonsense. It was obvious that there would be incompatibility.

Best Regards,

Carlos

February 19, 2024 at 10:04 pm #15320204

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

No worries, Carlos! 😀

Can you also please mark this ticket as resolved, too?

Thank you!

Mihai