Skip Navigation

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

Problem:
If you're working on a site and trying to configure the Theme Option for the footer in the Spanish language, but it's not functioning correctly, here's what we found and how we addressed it.
Solution:
1. We noticed that ACF Option Pages should not be translatable. In your WPML settings under WPML > Settings > Post Types Translation, set the translation preference to "Do not translate."
2. There were duplicated field groups for the same footer option page. We deactivated the unnecessary one and renamed it to "Option page: Footer inactive."
3. The translation mode on the footer group was initially set to "Different fields across languages." We recommend changing this to "Same fields across languages" to ensure consistency across translations.
4. The persistent error was due to a corrupt Spanish translation. To resolve this, we duplicated the field group and deactivated the original. The new active group is now "Option page: Footer (copy)."
You can now access the English footer option page, save it, and switch to Spanish to translate your content.

Please note that this solution might be outdated or not applicable to your specific case. We highly 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 the issue persists, please open a new support ticket.

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 8 replies, has 1 voice.

Last updated by Nicolas V. 3 months ago.

Assisted by: Nicolas V..

Author Posts
November 8, 2024 at 8:04 pm #16383456

jordanP-2

Background of the issue:
I am working on a site under development and trying to configure the Theme Option for the footer in the Spanish language.

Symptoms:
The Theme Option for the footer is not working in the Spanish language.

Questions:

November 8, 2024 at 8:05 pm #16383460

jordanP-2

Here is the WP Admin details
***CREDENTIALS REMOVED BY SUPPORT AGENT***

November 8, 2024 at 11:13 pm #16383669

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

Ususlaly you would need to scan the theme for new strings at WPML > Theme and Plugin Localization and then translate the footer text at WPML > String Translation.

Did you try that already?

Best regards
Andreas

November 11, 2024 at 10:38 am #16387915

jordanP-2

Yes, we have try this but not work

November 11, 2024 at 2:19 pm #16389102

Nicolas V.
Supporter

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

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

Hello,

Welcome to the WPML support forum. It looks like you have a custom theme. Could you please share more information about this option?

If you have a theme option page in your dashboard, then this field could be considered as "Texts in admin screens".
- Go back to "WPML > String Translation" and scroll to the bottom of the page to click on the "Translate texts in admin screens" link.
- On the next page, search for your option, select it and click on "Add to String Translation" to translate it.

If this solution doesn't work, could you please provide more details?
- Share a screenshot where we can see the footer option or vene better record a short video using a service like loom.com
- Is it a string of text, a custom field?
The more details you share, the better, it will help us understand your configuration.

November 11, 2024 at 2:51 pm #16389211

jordanP-2

I create the video for you
please check it
hidden link

November 11, 2024 at 4:24 pm #16389630

Nicolas V.
Supporter

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

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

Hello,

Thank you for the video. It seems that you are using an option page created with ACF.

You should be able to translate those fields following this documentation: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-the-acf-options-page-custom-fields-with-wpml/

In short:
- In "ACF > Field groups" , make sure that you have selected the "Same fields across languages" mode
- Go back to your option page and click "Update".
- Use the language switcher in your top admin bar to switch to Spanish.
- Translate your fields and click "Update"

If the fatal error persist, please provide me with a temporary admin access (wp-admin and FTP) – so I can further investigate.

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.

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

November 11, 2024 at 6:59 pm #16390053

jordanP-2

still we are getting same error
below admin detail please check it.

[Removed by supporter]

November 11, 2024 at 9:37 pm #16390293

Nicolas V.
Supporter

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

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

Hello,

You've shared login credentials in the public section of our forum. For security reasons, please delete that account immediately or at least update its password.

I took a quick look at your setup, and here’s what I found:

1. ACF Option Pages: These should not be translatable. Under "WPML > Settings > Post Types Translation", the translation preference should be set to "Do not translate."

2. Duplicated Field Groups: It appears you had two similar groups for the same footer option page. I deactivated the unnecessary one and renamed it to "Option page: Footer inactive."

3. Translation Mode on Footer Group: The group used by the footer page ("Option page: Footer") was set to "Different fields across languages." I instructed changing this to "Same fields across languages" in my previous answer.

4. Error Due to Corrupt Spanish Translation: Despite these adjustments, the error persisted because the Spanish translation was corrupted.

Solution: To resolve the issue, I duplicated the field group and deactivated the original. Now, "Option page: Footer" is inactive, and the new active group is "Option page: Footer (copy)".

Next Steps: You can now access the English footer option page, save it, and switch to Spanish to translate your content.

Note: I was logged out while trying to record a video explaining these changes, and I no longer have access since the public credentials were deleted.