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
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

This topic contains 4 replies, has 0 voices.

Last updated by Bigul 2 weeks, 2 days ago.

Assisted by: Bigul.

Author Posts
February 28, 2025 at 3:40 pm #16761722

berntE

Background of the issue:
I am trying to resolve an issue related to ACF Field Groups being sent for auto translation despite being set to 'Not translatable'.

This is a follow-up to a previous issue discussed at https://wpml.org/forums/topic/php-fatal-error-uncaught-error-call-to-a-member-function-get_source_language_code-in-functions/ which was closed before I could troubleshoot further.

Symptoms:
We're seeing fatal errors in our log file because ACF Field Groups are sent for translation despite being set to 'Not translatable'. You can see the stack trace in the previous thread.

Questions:
Why are ACF Field Groups being sent for translation despite being set to 'Not translatable'?
How can I prevent fatal errors related to this issue?

I tried hooking into the 'wpml_send_jobs_batch' hook to remove any elements that have post type 'acf-field-group'. But sometimes all elements in the batch have this type, and the WPML_TM_Translation_Batch class throws an error if I try to instantiate it with an empty element array.

March 1, 2025 at 5:45 pm #16764302

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

Please upgrade to WPML 4.7.1 version after a full site backup {mandatory}, and make sure the problem exists or not. May you have to visit Plugins>>Add New>>Commercial tab and click on the *Check for updates* button to get the WPML automatic upgrade links of the latest version. This step will help us refresh the installer caches.

If the problem remains, a couple of requests for tracking this bug.

1) Please let us know the exact steps to replicate the problem on your site.

2) Please fill the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

March 4, 2025 at 2:26 pm #16774640
berntE

Hi again,

I have updated to the newest version of the plugin, and I continue to see the error.

1)
It's difficult for me to give exact steps, since the problem happens in the background.

But as far as I can see, here is how to reproduce it:
- Go to #WPML > Translation Management" which shows the "X translations left in queue"
- Wait for 1-2 minutes, since it doesn't always happen immediately
- Check the debug.log file

I then see that the fatal error has occurred.

2)
I'm not sure we can give you access to the backend. I'll talk to the rest of the team and the business side to see if this is possible.

March 4, 2025 at 5:43 pm #16775393

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. This requires further debugging. So it will be great if you can consider a staging/dev site (a clone copy of the live site) for further debugging. So we can troubleshoot the bug without affecting the live site.

--
Thanks!

Bigul

March 12, 2025 at 9:48 am #16805996

berntE

Hi Bigul,

Sorry for the late reply.

Spoke with the team and they agreed to give you access to our WP site so you can troubleshoot the issue.

Let us now how you would prefer to get access.

March 12, 2025 at 2:52 pm #16807802

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates. I am enabling the private option for the next reply. Please share your staging/dev site credentials (a clone copy of the production/live site), so we can troubleshoot the bug without affecting the live site.

--
Thanks!

Bigul

March 14, 2025 at 7:16 pm #16818444

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the staging site details. I see the following error in the debug log while visiting the WPML>>Translation Management dashboard.

PHP Fatal error:  Uncaught Error: Call to a member function get_source_language_code() on bool in /www/abakioncom_293/public/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:505

Also, the issue related to the ACF Field Group was sent for translation (but it looks like an expected result since WPML 4.7).

Just to make sure, were the ACF Field Groups (Post Type) also set to *Not Translate* in the past?

This requires further debugging and escalation to our developers, so is it okay to make a copy of the site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/).

--
Thanks!

Bigul

March 18, 2025 at 11:12 am #16829679

berntE

Hi Bigul,

Thanks for the feedback.
Yes, we believe the ACF Field Groups (Post Type) was set to *Not Translate* in the past.

Yes, you can make a copy of the site for your developers to have a further look.

March 19, 2025 at 9:46 am #16834207

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the feedback and the permission. We are making a copy of the site (the duplicator plugin is taking more than expected time because of the big database) now, we will debug it further and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

March 21, 2025 at 4:05 pm #16845594

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

I made a copy of the site manually using File Manager and Adminer (for the database) plugins. But the Duplicator free version is not working as expected, and the Duplicator Pro and All in One Migration plugins are banned in Kinsta now. Refer to the attached image for more details.

We will debug it further locally and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

2025-03-21_21h23_40.png
March 30, 2025 at 5:04 am #16875999

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Sorry for the late response. We are still working on it and consulting with our team for an expert opinion, will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

The topic ‘[Closed] ACF Field Groups are sent for auto translation despite being set to “Not translatable”’ is closed to new replies.