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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 26 replies, has 2 voices.

Last updated by Kor 4 months, 3 weeks ago.

Assisted by: Kor.

Author Posts
June 25, 2024 at 5:22 pm

odisseasK

Background of the issue:
I am trying to translate a custom field area on my site hidden link using WPML. I have followed the documentation at https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/.

hidden link

Symptoms:
The custom field area appears with HTML code when translated.

Questions:
Why does the custom field area appear with HTML code when translated?
How can I fix the issue of HTML code appearing in the translated custom field area?

Please have a look at this video hidden link

June 25, 2024 at 5:24 pm
June 25, 2024 at 5:26 pm #15823686

odisseasK

You may inform me that this issue is caused by the ACF Multilingual plugin.
I installed it because I had another issue and a colleague from WPML instructed me to install it.
Just letting you know

June 25, 2024 at 5:39 pm #15823782

odisseasK

We used the ACF MULTILINGUAL because the custom fields "Amenities" would not show up in Spanish Language

June 25, 2024 at 5:50 pm #15823940

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

The ACF Multilingual plugin is required if you're using ACF with WPML.

I've created a sandbox site here hidden link and could you please try replicating the issue over there so that I could escalate this further.

June 25, 2024 at 7:52 pm #15825078

odisseasK

Hello kor.

I replicated the process but there is no mistake here.
See ODISSEAS TOUR

June 25, 2024 at 8:56 pm #15825504

odisseasK

IOn my main website I received the following email regarding a critical error.
------------------------------------------------------------------------------

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, WPML Multilingual CMS.

First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

hidden link

To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.5
Active theme: Divi Child (version 1.0.0)
Current plugin: WPML Multilingual CMS (version 4.6.11)
PHP version 7.4.33

Error Details
=============
An error of type E_ERROR was caused in line 112 of the file /home/bluepans/twoweeksago.bluepanselinos.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php. Error message: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/bluepans/twoweeksago.bluepanselinos.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Stack trace:
#0 [internal function]: WPML\FP\Obj::WPML\FP\{closure}(NULL, 'post_type', '')
#1 /home/bluepans/twoweeksago.bluepanselinos.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#2 [internal function]: WPML\FP\Obj::WPML\FP\{closure}(NULL, 'post_type', '')
#3 /home/bluepans/twoweeksago.bluepanselinos.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#4 /home/bluepans/twoweeksago.bluepanselinos.com/wp-content/plugins/acfml/classes/Helper/Cpt.php(29): WPML\FP\Obj::__callStatic('propOr', Array)
#5 /home/bluepans/twoweeksago.bluepanselinos.com/wp-content/plugins/acfml/classes/TranslationDataColumnsHo

June 26, 2024 at 7:38 am #15830734

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

The critical error that you're encountering could be related to this one https://wpml.org/errata/fatal-error-uncaught-invalidargumentexception-item-should-be-a-collection-or-an-array-or-an-object-when-visiting-wpml-settings/ but it should be fixed since you are already using the latest version.

I regret any inconvenience caused, but to proceed with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

June 26, 2024 at 8:38 am #15831331

odisseasK

Greetings Kor.

I have already backed up my website with another plugin. I have several copies of the website, before and after the ACF multilingual installation.

Feel free to do any testing you want directly to twoweeksbluepanselinos.com website.

This website is a testing website, so no need to worry.

June 27, 2024 at 8:49 pm #15846598

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for getting back to me.

Even after deactivating most of the third-party plugins, I can still replicate this issue. I'd like to escalate this matter to our second-tier support for further investigation. I'll update you as soon as I receive any feedback.

June 28, 2024 at 7:23 am #15849886

odisseasK

Ok Kor, thanks a lot. Waiting on your feedback.

Would you like me to send you through wetransfer a copy of my website BEFORE installing ACF Multilingual Plugin?

July 1, 2024 at 10:05 am #15867569

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I apologize for the delay due to the weekend. Yes, please send over the copy of the site and I will investigate this locally.

July 2, 2024 at 1:23 pm #15875676

odisseasK

Greetings Kor

I have restored the Website before ACF Multilingual was installed.

As you can see from the video, the ACF multilingual was recommended to fix the issue with the Custom Field "Amenities".

In the video the "Amenities" do not show up as they are supposed to, in Spanish translation.
The ACF multilingual fixed that.

But at the same time, the ACF Multilingual created another problem.
It broke the translated version of the Custom Field "Tour Info".

In the video you see that the Tour Info fields gets translated properly and its style is maintained.
Once the ACF Multilingual was installed, the Spanish Translation broke - the custom field appears with no styling and there is nothing I could do about it.

hidden link

July 2, 2024 at 1:48 pm
July 3, 2024 at 7:55 am

The topic ‘[Closed] CUSTOM FIELD AREA appears with HTML code when translated’ is closed to new replies.