Skip Navigation

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

Problem:
If you're trying to convert from Polylang to WPML and encounter a fatal error, it might be due to a Polylang function being called directly in your theme's

functions.php

file.
Solution:
To resolve this issue, you can either remove the problematic function from your

functions.php

file or wrap it in a conditional statement that checks if the function exists before calling it. Here are some examples of how to implement this check:

Please let us know once you've resolved the issue so we can close your support ticket.

If this solution doesn't seem relevant to your situation, feel free to open a new support ticket with us here.

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 6 replies, has 3 voices.

Last updated by Ilyes 1 year, 6 months ago.

Assisted by: Ilyes.

Author Posts
December 13, 2023 at 12:43 am #15050253

raulR-19

i tried to convert polylang to wpml and it doesnt work, gives me fatal error

no documentation

there are many on forums with fatal error

site.eagency.ro/imperialfinefood

December 13, 2023 at 12:44 am #15050255

raulR-19

My theme breaks i think, i dont know, its database problem anyway

December 13, 2023 at 2:44 pm #15056219

Nicolas V.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello again,

I recognized your email address. As discussed in our call, the issue is related to a Polylang function called directly in your functions.php.

I already sent you an email but let me share this information here as it could help more clients.

- You can solve this either by removing the function or wrapping it up inside a conditional that will first check if the function exists before running the function.
Some examples:
hidden link
https://wordpress.stackexchange.com/questions/111299/why-use-if-function-exists

Please confirm when this issue is solved so we can close that ticket.

Cheers,
Nico

December 14, 2023 at 1:44 pm #15063735

raulR-19

Is it possible to have another call, the header is showing but the rest of the website isnt and the debugger doesnt show any fatal error ?

December 14, 2023 at 4:49 pm #15066811

Nicolas V.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

We're advancing! Because it's more of a technical issue than really a coaching session it would be better if you could provide me access to your staging copy.

I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting. Don't share credentials if you don't see that private form.

IMPORTANT: Before we proceed, please backup your site and database.

If I find the issue and solve it I will give you clear instructions so you can do the same on your main site.

December 16, 2023 at 12:14 pm #15077249
raulR-19

Hey, i modified the whole php of the website and now it works properly, im having issues setting up the multicurrency, is it possible to provide me with support please? maybe a coaching session would be easier because its complicated to explain what i actually need from the multicurrency.

New threads created by Ilyes and linked to this one are listed below:

https://wpml.org/forums/topic/split-questions-about-multicurrency/

December 18, 2023 at 5:35 pm #15086631

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank you for the follow-up,

Nicolas is currently on vacation and he won't be available until the next week for coaching sessions,

However, in the meantime, I would be more than happy to help you with all questions about multicurrency and guide you through how to use our plugin "Woocommerce multilingual and multicurrency"

And to keep our forum organized and more accessible to other users, I have created another ticket for you where we can continue our conversation here : https://wpml.org/forums/topic/split-questions-about-multicurrency/

Please mark this initial ticket as resolved and I will be looking forward to your reply on the new ticket,

Your patience and comprehension is highly appreciated 🙂

Best,