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.

We have a longer than usual waiting time. Please make sure to check out the Known Issues page and Minimum Requirements before reporting any issue.
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 8:00 – 13:00 8:00 – 13:00 8:00 – 13:00 8:00 – 13:00 -
- 14:00 – 17:00 14:00 – 17:00 14:00 – 17:00 14:00 – 17:00 14:00 – 17:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 18 replies, has 3 voices.

Last updated by Raja Mohammed 5 years, 7 months ago.

Assisted by: Raja Mohammed.

Author Posts
March 21, 2019 at 8:15 pm #3421143

robertE-2

I am trying to:
Translate ACF fields. I have fields that need to be translated inside of a flexible content layout inside a nested repeater inside a parent flexible content layout. Although the appropriate "Copy"/"Translate" selections have been made, the fields are not included in my XLIFF export. I created a new, simplified ACF group, and this functionality worked. However, when I try with my actual data, it does not. I believe this is because the field names of my actual data are very long. Is there a limit on the field name?

Link to a page where the issue can be seen:
NA

I expected to see:
All ACF fields that have been identified as "Translate" to be included on the XLIFF export.

Instead, I got:
Fields with long names (e.g., layout_modules_2_module_comp_content_section_content_rows_0_module_comp_content_section_content_rows_columns_0_module_comp_content_section_content_rows_columns_content_1_module_content_content) are not included on the export.

March 21, 2019 at 8:31 pm #3421769

robertE-2
{
    "key": "group_5c93ca50b7b01",
    "title": "Nested Flexible Content and Repeaters",
    "fields": [
        {
            "key": "field_5c93ca5d0c21c",
            "label": "First Flexible Content",
            "name": "first_flexible_content",
            "type": "flexible_content",
            "instructions": "",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "wpml_cf_preferences": 1,
            "admin_only": 0,
            "layouts": {
                "5c93ca6b228d5": {
                    "key": "5c93ca6b228d5",
                    "name": "first_fc_layout",
                    "label": "First FC Layout",
                    "display": "block",
                    "sub_fields": [
                        {
                            "key": "field_5c93cac00c21d",
                            "label": "First Repeater",
                            "name": "first_repeater",
                            "type": "repeater",
                            "instructions": "",
                            "required": 0,
                            "conditional_logic": 0,
                            "wrapper": {
                                "width": "",
                                "class": "",
                                "id": ""
                            },
                            "admin_only": 0,
                            "collapsed": "",
                            "min": 0,
                            "max": 0,
                            "layout": "table",
                            "button_label": "",
                            "wpml_cf_preferences": 1,
                            "sub_fields": [
                                {
                                    "key": "field_5c93caf90c21e",
                                    "label": "Second Repeater",
                                    "name": "second_repeater",
                                    "type": "repeater",
                                    "instructions": "",
                                    "required": 0,
                                    "conditional_logic": 0,
                                    "wrapper": {
                                        "width": "",
                                        "class": "",
                                        "id": ""
                                    },
                                    "admin_only": 0,
                                    "collapsed": "",
                                    "min": 0,
                                    "max": 0,
                                    "layout": "table",
                                    "button_label": "",
                                    "wpml_cf_preferences": 1,
                                    "sub_fields": [
                                        {
                                            "key": "field_5c93cb030c21f",
                                            "label": "Second Flexible Content",
                                            "name": "second_flexible_content",
                                            "type": "flexible_content",
                                            "instructions": "",
                                            "required": 0,
                                            "conditional_logic": 0,
                                            "wrapper": {
                                                "width": "",
                                                "class": "",
                                                "id": ""
                                            },
                                            "admin_only": 0,
                                            "layouts": {
                                                "5c93cb1f17b7e": {
                                                    "key": "5c93cb1f17b7e",
                                                    "name": "second_fc_layout",
                                                    "label": "Second FC Layout",
                                                    "display": "block",
                                                    "sub_fields": [
                                                        {
                                                            "key": "field_5c93cb300c220",
                                                            "label": "Test Text",
                                                            "name": "test_text",
                                                            "type": "text",
                                                            "instructions": "",
                                                            "required": 0,
                                                            "conditional_logic": 0,
                                                            "wrapper": {
                                                                "width": "",
                                                                "class": "",
                                                                "id": ""
                                                            },
                                                            "wpml_cf_preferences": 2,
                                                            "admin_only": 0,
                                                            "default_value": "",
                                                            "placeholder": "",
                                                            "prepend": "",
                                                            "append": "",
                                                            "maxlength": ""
                                                        }
                                                    ],
                                                    "min": "",
                                                    "max": ""
                                                }
                                            },
                                            "button_label": "Add Row",
                                            "min": "",
                                            "max": "",
                                            "wpml_cf_preferences": 1
                                        }
                                    ]
                                }
                            ]
                        }
                    ],
                    "min": "",
                    "max": ""
                },
                "layout_5c93ccad70c54": {
                    "key": "layout_5c93ccad70c54",
                    "name": "cloned_fc_layout",
                    "label": "Cloned FC Layout",
                    "display": "block",
                    "sub_fields": [
                        {
                            "key": "field_5c93ce652dc19",
                            "label": "Cloned Component",
                            "name": "cloned_component",
                            "type": "clone",
                            "instructions": "",
                            "required": 0,
                            "conditional_logic": 0,
                            "wrapper": {
                                "width": "",
                                "class": "",
                                "id": ""
                            },
                            "admin_only": 0,
                            "clone": [
                                "group_5c93cde334345"
                            ],
                            "display": "seamless",
                            "layout": "block",
                            "prefix_label": 0,
                            "prefix_name": 0,
                            "wpml_cf_preferences": 1
                        }
                    ],
                    "min": "",
                    "max": ""
                }
            },
            "button_label": "Add Row",
            "min": "",
            "max": ""
        }
    ],
    "location": [
        [
            {
                "param": "page",
                "operator": "==",
                "value": "599"
            }
        ]
    ],
    "menu_order": 0,
    "position": "normal",
    "style": "default",
    "label_placement": "top",
    "instruction_placement": "label",
    "hide_on_screen": "",
    "active": 1,
    "description": "",
    "modified": 1553190535
}
{
    "key": "group_5c93cde334345",
    "title": "Double Repeater with Text in Flexible Content",
    "fields": [
        {
            "key": "field_5c93cdf17ccbd",
            "label": "First Repeater",
            "name": "first_repeater",
            "type": "repeater",
            "instructions": "",
            "required": 0,
            "conditional_logic": 0,
            "wrapper": {
                "width": "",
                "class": "",
                "id": ""
            },
            "admin_only": 0,
            "collapsed": "",
            "min": 0,
            "max": 0,
            "layout": "table",
            "button_label": "",
            "wpml_cf_preferences": 1,
            "sub_fields": [
                {
                    "key": "field_5c93cdfd7ccbe",
                    "label": "Second Repeater",
                    "name": "second_repeater",
                    "type": "repeater",
                    "instructions": "",
                    "required": 0,
                    "conditional_logic": 0,
                    "wrapper": {
                        "width": "",
                        "class": "",
                        "id": ""
                    },
                    "admin_only": 0,
                    "collapsed": "",
                    "min": 0,
                    "max": 0,
                    "layout": "table",
                    "button_label": "",
                    "wpml_cf_preferences": 1,
                    "sub_fields": [
                        {
                            "key": "field_5c93ce087ccbf",
                            "label": "Second Flexible Content",
                            "name": "second_flexible_content",
                            "type": "flexible_content",
                            "instructions": "",
                            "required": 0,
                            "conditional_logic": 0,
                            "wrapper": {
                                "width": "",
                                "class": "",
                                "id": ""
                            },
                            "wpml_cf_preferences": 1,
                            "admin_only": 0,
                            "layouts": {
                                "5c93ce218e90a": {
                                    "key": "5c93ce218e90a",
                                    "name": "second_fc_layout",
                                    "label": "Second FC Layout",
                                    "display": "block",
                                    "sub_fields": [
                                        {
                                            "key": "field_5c93ce247ccc0",
                                            "label": "Test Text in Cloned Layout",
                                            "name": "test_text_in_cloned_layout",
                                            "type": "text",
                                            "instructions": "",
                                            "required": 0,
                                            "conditional_logic": 0,
                                            "wrapper": {
                                                "width": "",
                                                "class": "",
                                                "id": ""
                                            },
                                            "wpml_cf_preferences": 2,
                                            "admin_only": 0,
                                            "default_value": "",
                                            "placeholder": "",
                                            "prepend": "",
                                            "append": "",
                                            "maxlength": ""
                                        },
                                        {
                                            "key": "field_5c93ed3c8b711",
                                            "label": "Text with super long title",
                                            "name": "text_with_super_long_title_text_with_super_long_title_text_with_super_long_title_text_with_super_long_title_text_with_super_long_title_text_with_super_long_title",
                                            "type": "text",
                                            "instructions": "",
                                            "required": 0,
                                            "conditional_logic": 0,
                                            "wrapper": {
                                                "width": "",
                                                "class": "",
                                                "id": ""
                                            },
                                            "wpml_cf_preferences": 2,
                                            "admin_only": 0,
                                            "default_value": "",
                                            "placeholder": "",
                                            "prepend": "",
                                            "append": "",
                                            "maxlength": ""
                                        }
                                    ],
                                    "min": "",
                                    "max": ""
                                }
                            },
                            "button_label": "Add Row",
                            "min": "",
                            "max": ""
                        }
                    ]
                }
            ]
        }
    ],
    "location": [
        [
            {
                "param": "post_type",
                "operator": "==",
                "value": "post"
            }
        ]
    ],
    "menu_order": 0,
    "position": "normal",
    "style": "default",
    "label_placement": "top",
    "instruction_placement": "label",
    "hide_on_screen": "",
    "active": 1,
    "description": "",
    "modified": 1553200164
}
acf-xliff-example.png
acf-issue.png
March 22, 2019 at 1:37 pm #3440799

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,

Welcome to our forum,

The issue might be due to limited PHP Max Input vars, Please increase the value to 5000. If you can handle this you can follow the link as a reference on how to increase the PHP max input vars hidden link. If not you can request your hosting provider to help you in this case.

Let me know the results

Kind regards
Raja

March 22, 2019 at 2:37 pm #3441421

robertE-2

I have a separate staged instance of this site on a different server with max_input_vars set to 10000, and I still have the same issue.

When I outlined the issue above, the field_name is exceptionally long due to nested repeaters and flexible content. To test whether the issue is due to nesting or field length, I went ahead and made a new, unnested ACF text field with a very long field_name. The result is that the text field doesn't work either. My assumption is that the error I am encountering is due to a limit on field_name within the WPML or ACFML plugins. Can you provide any insight on character limits?

March 25, 2019 at 5:17 am #3449707

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,

Thanks for the information,

When the fields with lengthier names are missing this is probably a case of insufficient Max Input vars, let me test this in my local setup.

It would be good if you can provide me with the WordPress debug.log (not WPML debug information).

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );

In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory.

If you can paste your debug.log to pastebin.com and provide me that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess in the discussion).

Let me know the results.

Kind regards
Raja

March 25, 2019 at 2:18 pm #3454771

robertE-2

Unfortunately, no errors are logged to debug.log. Rather, it appears to fail silently.

Were you able to recreate the issue on your end by either using the acf-json files provided or by creating a single text field with a long name?

Thanks!

March 26, 2019 at 6:09 am #3459279

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,

I have requested our second tier supporters for their advice, I am able to reproduce on the sandbox installation. I will let you know as soon as I hear from them.

kind regards
Raja

March 26, 2019 at 2:01 pm #3463207

robertE-2

Thank you for the update, Raja. I look forward to hearing back from your team.

Unrelated -- is it possible to remove the unformatted code from my first message? I resent the code snippets with proper formatting in the second message.

March 27, 2019 at 5:07 am #3467605

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,

The issue is now escalated further for a detailed look, It seems like a bug, I will update you once i have a fix or workaround from the developers.

As requested I have removed the unformatted code from your first response.

Kind regards
Raja

March 27, 2019 at 1:37 pm #3471517

robertE-2

Thank you for the update. Can you provide any additional information on when I can expect a fix? I need to be able to adjust project timelines on my end.

March 28, 2019 at 6:13 am #3477193

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi there,

Raja currently has a few days off, He will be back on coming Monday.

Just for the update, I will like to let you know that our 2nd tier supporters are working on this issue, we don't have any ETA for the fix to be released.

Thanks

April 1, 2019 at 6:31 am #3504313

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,

Thanks for your patience, I have an update from the developer that the recommended field length is 130 character. However, we are still discussing the issue to accommodate the fields with a lengthy character name.

I hope this would help you for the time being.

Kind regards
Raja

April 1, 2019 at 9:42 pm #3512009

robertE-2

Unfortunately, this does not resolve my current situation. Individually, my field names are far less than 130 characters. Rather, the issue is the result of field names concatenating when fields are nested within flexible content and repeater fields.

Please let me know when the fix will be available. Thanks, Raja!

April 2, 2019 at 5:16 am #3513937

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thanks,

I will update the developer with your inputs, Unfortunately, it's unsure how soon the fix will be released, I will try my best to get some workaround or a possible solution, Based on the priority and intensity of the issue our developers work on the tickets,

I'm marking this thread as escalated.

Kind regards
Raja

April 3, 2019 at 9:04 pm #3530515

robertE-2

Hi, Raja!

Can you provide a ballpark timeline for a fix? Are we talking days, weeks, months? Thanks!