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.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Shekhar Bhandari 2 days, 19 hours ago.

Assisted by: Shekhar Bhandari.

Author Posts
April 21, 2025 at 9:26 am

thibautA-2

Background of the issue:
I've just bought the WPML plugin to translate my website from French to English. I am using the Spinoko theme which is compatible with WPML. I've been translating my first page, but I am now experiencing a critical error on the translated page. I am using WPML for the first time and have been trying to solve the issue for 12 hours by translating all the custom fields and Spinoko files. I am considering asking for a refund but wanted to seek help first. The website is hidden link and is still under construction.

Symptoms:
Critical error on the translated /en/ page.

Questions:
What could be causing the critical error on the translated page?
How can I resolve the critical error when using WPML with the Spinoko theme?

April 21, 2025 at 11:10 am
April 21, 2025 at 11:55 am
April 21, 2025 at 12:21 pm #16951803

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

The wp-content zip file is corrupted, can you please re-share it?

Look forward to your reply.

Thanks

April 21, 2025 at 12:56 pm
April 21, 2025 at 5:19 pm #16952523

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

This is a compatibility issue with the theme, I have escalated this issue to our compatibility team as this will require work to make the theme acf fields fully compatible with WPML.

In the meantime, as a workaround, can you add the following code to WPML->Settings->Custom XML configuration and update the pages to see if it helps?

<wpml-config>
        <custom-fields>
                <custom-field action="copy">payment_methods</custom-field>
                <custom-field action="copy">_payment_methods</custom-field>
                <custom-field action="copy">countries</custom-field>
                <custom-field action="copy">_countries</custom-field>
                <custom-field action="copy">pros</custom-field>
                <custom-field action="copy">_pros</custom-field>
                <custom-field action="copy">games</custom-field>
                <custom-field action="copy">_games</custom-field>
                <custom-field action="copy">website</custom-field>
                <custom-field action="copy">_website</custom-field>
                <custom-field action="copy">established</custom-field>
                <custom-field action="copy">_established</custom-field>
                <custom-field action="copy">license</custom-field>
                <custom-field action="copy">_license</custom-field>
                <custom-field action="copy">deposit_min</custom-field>
                <custom-field action="copy">_deposit_min</custom-field>
          	<custom-field action="copy">deposit_max</custom-field>
                <custom-field action="copy">_deposit_max</custom-field>
          	<custom-field action="copy">game_providers</custom-field>
                <custom-field action="copy">_game_providers</custom-field>
          	<custom-field action="copy">cons</custom-field>
                <custom-field action="copy">_cons</custom-field>
        </custom-fields>
</wpml-config>

If the problem still appears or some fields doesn't show up in translations, I suggest you to follow the below steps:

- Go to WPML->Settings->Custom Fields Translations and enable "Show "Multilingual Content Setup" meta box on post edit screen." and save

- Now edit the page with the issue in default language and in the bottom you will see multilingual custom fields

- Go to Custom Fields sections and click on show system fields

- Search the field that's not showing up and mark it as translate, copy, based on your preferences, if you set copy, set the system fields (same field name but that starts with _) to copy too.

- Click on Apply and update the page.

More details:
https://wpml.org/documentation/getting-started-guide/translating-custom-fields/
https://wpml.org/documentation/support/language-configuration-files/custom-fields-translation-options/
https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/recommended-custom-fields-translation-preferences-for-acf-and-wpml/

Let me know if this helps.

Thanks

April 21, 2025 at 6:04 pm #16952563

thibautA-2

Hi.
I've just followed the steps as requested and the page displays correctly now !!
At firts, I refreshed the page with the error right after adding the Custom XML but it did not change. Then, I went to the custom fields on the default language page and some custom fields appeared with message "This type of ACF field will always be set to "Copy once". So I did it, except for "Pros" and "Cons" which were on "Copy" but I could change itbecause of the Custom XML I think. Then I refreshed the page with the error and everything is fine now. I think adding the Custom XML solved the problem.
Thank you very much !!!

April 21, 2025 at 6:54 pm #16952648

thibautA-2

The rating table is still missing on the english page. I think that's the only problem now.

April 22, 2025 at 5:48 am #16953031

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Please modify the xml and add the following to fix the issue.

<custom-field action="copy">ratings</custom-field>
    <custom-field action="copy">_ratings</custom-field>
    <custom-field action="copy">rating_overall</custom-field>
    <custom-field action="copy">_rating_overall</custom-field>

Add this code before

</custom-fields>

Let me know if this helps.

Thanks

April 22, 2025 at 7:03 am #16953227

thibautA-2

All's good now 🙂
Thank you very much for your very good work !!

April 22, 2025 at 9:40 am #16954114

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Glad to know that, have a nice day ahead.