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.
New threads created by Bigul and linked to this one are listed below:
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.
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.
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/).
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.
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.
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.