Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
Repeater field was not showing in the frontend but only for one language , for other languages it was working fine.

Solution:

- Backup the site for a reference.
- Go to WPML -> Settings page and scroll to "Post Types Translation" section
- Set "Field Groups (acf-field-group)" to not translatable as explained in the next link.

Relevant Documentation:

https://wpml.org/errata/advanced-custom-fields-field-group-should-be-set-as-not-translatable/

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/expert-translation-option/#field-group-translation-settings

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.

This topic contains 4 replies, has 2 voices.

Last updated by Subash Chandra Poudel 1 year, 6 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
July 27, 2023 at 12:39 pm

jeroenG-4

On a website we made, Our customer recently added the Romanian language, here she tried to translate an existing repeater (Made with ACF), but the repeater doesnt show the output correctly.
It only echoes the ID and not the translated data.
Which is weird because the website had other languages with the same repeater and they translate correctly

July 27, 2023 at 2:12 pm
July 27, 2023 at 2:16 pm #14111589

jeroenG-4

I placing the dumps from the homeplan repeater here so that I can disable the wp debug on the website:
English website:

array(3) {
  ["title"]=>
  string(28) "Getting started with Saninet"
  ["mobile_title"]=>
  string(36) "Choose a subscription that suits you"
  ["products"]=>
  array(3) {
    [0]=>
    array(1) {
      ["product"]=>
      array(4) {
        ["product"]=>
        array(9) {
          ["title"]=>
          string(5) "Basic"
          ["price"]=>
          string(47) "From € 59 /month"
          ["billed"]=>
          string(15) "Annual payment "
          ["most_populair"]=>
          bool(false)
          ["button"]=>
          array(2) {
            ["label"]=>
            string(10) "Choose now"
            ["link"]=>
            string(68) "<em><u>hidden link</u></em>"
          }
          ["quote"]=>
          bool(false)
          ["features"]=>
          array(3) {
            ["feature_title"]=>
            string(0) ""
            ["feature_text"]=>
            string(0) ""
            ["included"]=>
            array(12) {
              [0]=>
              array(2) {
                ["title"]=>
                string(33) "Choose the shape of your bathroom"
                ["active"]=>
                bool(true)
              }
              [1]=>
              array(2) {
                ["title"]=>
                string(22) "Create your own shapes"
                ["active"]=>
                bool(false)
              }
              [2]=>
              array(2) {
                ["title"]=>
                string(36) "Choose 3D models of generic products"
                ["active"]=>
                bool(true)
              }
              [3]=>
              array(2) {
                ["title"]=>
                string(35) "Choose 3D models of existing brands"
                ["active"]=>
                bool(false)
              }
              [4]=>
              array(2) {
                ["title"]=>
                string(28) "Save your favourite products"
                ["active"]=>
                bool(false)
              }
              [5]=>
              array(2) {
                ["title"]=>
                string(26) "Place wall and floor tiles"
                ["active"]=>
                bool(true)
              }
              [6]=>
              array(2) {
                ["title"]=>
                string(47) "Place decorative tiles and customise the joints"
                ["active"]=>
                bool(true)
              }
              [7]=>
              array(2) {
                ["title"]=>
                string(33) "HD viewer with day and night mode"
                ["active"]=>
                bool(true)
              }
              [8]=>
              array(2) {
                ["title"]=>
                string(13) "Cloud storage"
                ["active"]=>
                bool(true)
              }
              [9]=>
              array(2) {
                ["title"]=>
                string(27) "Generate technical drawings"
                ["active"]=>
                bool(false)
              }
              [10]=>
              array(2) {
                ["title"]=>
                string(32) "Saninet Viewer app for consumers"
                ["active"]=>
                bool(true)
              }
              [11]=>
              array(2) {
                ["title"]=>
                string(14) "1 to 5 users  "
                ["active"]=>
                bool(true)
              }
            }
          }
          ["quote_title"]=>
          string(0) ""
          ["quote_text"]=>
          string(0) ""
        }
        ["plugins"]=>
        array(1) {
          ["plugins"]=>
          bool(false)
        }
        ["form"]=>
        array(6) {
          ["title"]=>
          string(0) ""
          ["sub"]=>
          string(0) ""
          ["period"]=>
          bool(false)
          ["users"]=>
          bool(false)
          ["info"]=>
          array(3) {
            ["users"]=>
            string(0) ""
            ["price"]=>
            string(0) ""
            ["period"]=>
            string(0) ""
          }
          ["remarks"]=>
          string(0) ""
        }
        ["free_trial"]=>
        array(2) {
          ["demo_request"]=>
          bool(false)
          ["demo_text"]=>
          string(0) ""
        }
      }
    }
    [1]=>
    array(1) {
      ["product"]=>
      array(4) {
        ["product"]=>
        array(9) {
          ["title"]=>
          string(3) "Pro"
          ["price"]=>
          string(48) "From € 115 /month"
          ["billed"]=>
          string(32) "in case of a 1-year subscription"
          ["most_populair"]=>
          bool(true)
          ["button"]=>
          array(2) {
            ["label"]=>
            string(10) "Choose now"
            ["link"]=>
            string(68) "<em><u>hidden link</u></em>"
          }
          ["quote"]=>
          bool(false)
          ["features"]=>
          array(3) {
            ["feature_title"]=>
            string(0) ""
            ["feature_text"]=>
            string(0) ""
            ["included"]=>
            array(12) {
              [0]=>
              array(2) {
                ["title"]=>
                string(33) "Choose the shape of your bathroom"
                ["active"]=>
                bool(true)
              }
              [1]=>
              array(2) {
                ["title"]=>
                string(22) "Create your own shapes"
                ["active"]=>
                bool(true)
              }
              [2]=>
              array(2) {
                ["title"]=>
                string(36) "Choose 3D models of generic products"
                ["active"]=>
                bool(true)
              }
              [3]=>
              array(2) {
                ["title"]=>
                string(35) "Choose 3D models of existing brands"
                ["active"]=>
                bool(true)
              }
              [4]=>
              array(2) {
                ["title"]=>
                string(28) "Save your favourite products"
                ["active"]=>
                bool(true)
              }
              [5]=>
              array(2) {
                ["title"]=>
                string(26) "Place wall and floor tiles"
                ["active"]=>
                bool(true)
              }
              [6]=>
              array(2) {
                ["title"]=>
                string(47) "Place decorative tiles and customise the joints"
                ["active"]=>
                bool(true)
              }
              [7]=>
              array(2) {
                ["title"]=>
                string(33) "HD viewer with day and night mode"
                ["active"]=>
                bool(true)
              }
              [8]=>
              array(2) {
                ["title"]=>
                string(13) "Cloud storage"
                ["active"]=>
                bool(true)
              }
              [9]=>
              array(2) {
                ["title"]=>
                string(27) "Generate technical drawings"
                ["active"]=>
                bool(true)
              }
              [10]=>
              array(2) {
                ["title"]=>
                string(32) "Saninet Viewer app for consumers"
                ["active"]=>
                bool(true)
              }
              [11]=>
              array(2) {
                ["title"]=>
                string(12) "1 to 5 users"
                ["active"]=>
                bool(true)
              }
            }
          }
          ["quote_title"]=>
          string(0) ""
          ["quote_text"]=>
          string(0) ""
        }
        ["plugins"]=>
        array(1) {
          ["plugins"]=>
          bool(false)
        }
        ["form"]=>
        array(6) {
          ["title"]=>
          string(0) ""
          ["sub"]=>
          string(0) ""
          ["period"]=>
          bool(false)
          ["users"]=>
          bool(false)
          ["info"]=>
          array(3) {
            ["users"]=>
            string(0) ""
            ["price"]=>
            string(0) ""
            ["period"]=>
            string(0) ""
          }
          ["remarks"]=>
          string(0) ""
        }
        ["free_trial"]=>
        array(2) {
          ["demo_request"]=>
          bool(false)
          ["demo_text"]=>
          string(0) ""
        }
      }
    }
    [2]=>
    array(1) {
      ["product"]=>
      array(4) {
        ["product"]=>
        array(9) {
          ["title"]=>
          string(10) "Enterprise"
          ["price"]=>
          string(17) "More than 5 users"
          ["billed"]=>
          string(16) "Price on request"
          ["most_populair"]=>
          bool(false)
          ["button"]=>
          array(2) {
            ["label"]=>
            string(10) "Choose now"
            ["link"]=>
            string(42) "<em><u>hidden link</u></em>"
          }
          ["quote"]=>
          bool(true)
          ["features"]=>
          array(3) {
            ["feature_title"]=>
            string(0) ""
            ["feature_text"]=>
            string(0) ""
            ["included"]=>
            bool(false)
          }
          ["quote_title"]=>
          string(0) ""
          ["quote_text"]=>
          string(147) "
Does your organization work with 5 or more planners at the same time? Contact us and ask about the possibilities for an enterprise license.


"
        }
        ["plugins"]=>
        array(1) {
          ["plugins"]=>
          bool(false)
        }
        ["form"]=>
        array(6) {
          ["title"]=>
          string(0) ""
          ["sub"]=>
          string(0) ""
          ["period"]=>
          bool(false)
          ["users"]=>
          bool(false)
          ["info"]=>
          array(3) {
            ["users"]=>
            string(0) ""
            ["price"]=>
            string(0) ""
            ["period"]=>
            string(0) ""
          }
          ["remarks"]=>
          string(0) ""
        }
        ["free_trial"]=>
        array(2) {
          ["demo_request"]=>
          bool(false)
          ["demo_text"]=>
          string(0) ""
        }
      }
    }
  }
}

Same repeater, translated via WPML translator but on the Romanian website:

array(3) {
  ["title"]=>
  string(17) "Noțiuni de bază"
  ["mobile_title"]=>
  string(4) "test"
  ["products"]=>
  array(3) {
    [0]=>
    array(1) {
      ["product"]=>
      bool(false)
    }
    [1]=>
    array(1) {
      ["product"]=>
      bool(false)
    }
    [2]=>
    array(1) {
      ["product"]=>
      bool(false)
    }
  }
}
July 27, 2023 at 5:29 pm #14112815

Subash Chandra Poudel

Hi there,

Thank you for the details.

To troubleshoot the issue further I will need to take a closer look at the site and also modify plugins/settings and/or code. So to test the issue without affecting your live site, will it be possible for you to setup a staging/test site on the same server and provide me with the access details ( wp-admin and ftp ) ?

If a staging site is not possible will it be possible for you to provide me with a copy of the site as explained in the next link?
https://wpml.org/faq/provide-supporters-copy-site/

I have enabled a private reply for you to share the details.

Regards,
Subash

July 28, 2023 at 8:12 am #14115325

jeroenG-4

Hi Subash, I posted the download link in a private message as the WP URL admin

July 28, 2023 at 8:14 am
July 29, 2023 at 1:58 am #14120411

Subash Chandra Poudel

Hi there,

Thank you for the details.

I have set your previous reply as private now.

After further troubleshooting I found that the issue on the site is because you have set "Field Groups (acf-field-group)" to translatable. Can you please:

- Backup the site for a reference.
- Go to WPML -> Settings page and scroll to "Post Types Translation" section
- Set "Field Groups (acf-field-group)" to not translatable as explained in the next link:
https://wpml.org/errata/advanced-custom-fields-field-group-should-be-set-as-not-translatable/

The issue should then be solved.

If you had set Field Groups as translatable for a purpose or to translate field labels please use the following guide instead as labels can bow be translated with WPML String translation.

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/expert-translation-option/#field-group-translation-settings

Regards,
Subash

August 1, 2023 at 8:05 am #14131117

jeroenG-4

After all it was just one setting, but the help was great, Thanks for that!