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'.
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.
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.
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.
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.