Skip Navigation

Resolved

Reported for: Advanced Custom Fields Multilingual 2.0.1

Resolved in: 2.0.2

Topic Tags: Compatibility

Overview of the issue

Since our recent ACFML 2.0 update, the ACF function for taxonomy fields called Load Terms is not working properly. As a result, when you save a post custom field with this function, the term may be set, but the field will remain empty.

Workaround

Be sure to make a full backup of your site before proceeding. Then, to work around this issue, you can apply the following patch to the Advanced Custom Fields Multilingual plugin:

  1. Open the file /wp-content/plugins/acfml/classes/strategy/repeater-sync/HooksFactory.php in a text editor.
  2. Look for line 10.
  3. Replace the following code:
    1
    2
    3
    4
    5
    6
    class HooksFactory implements IWPML_Backend_Action_Loader {
     
        /**
         * @return IWPML_Action[]
         */
        public function create() {

    With:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    class HooksFactory implements IWPML_Backend_Action_Loader, IWPML_Deferred_Action_Loader {
     
        /**
         * @return string
         */
        public function get_load_action() {
            return 'wp_loaded';
        }
     
        /**
         * @return IWPML_Action[]
         */
        public function create() {