Skip Navigation

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

Problem:
You are experiencing a critical error on the translated page of your website using the Spinoko theme with WPML.
Solution:
This issue is due to a compatibility problem with the theme. We have escalated this to our compatibility team for a permanent fix. Meanwhile, as a workaround, please add the following code to WPML->Settings->Custom XML configuration and update the pages:

<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-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>
        </custom-fields>
</wpml-config>

If issues persist, adjust the translation preferences for custom fields as needed in WPML settings. For more details, visit:

If this solution does not resolve your issue or becomes outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at 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 0 reply, has 0 voices.

Last updated by Shekhar Bhandari 1 month, 3 weeks 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.