• Hi,

    It seems the plugin does not support ACF repeater fields.

    Either it copies the same values in all repeater entries or fails completely and gives a fatal error on site level:

    [22-Jan-2024 15:09:10 UTC] PHP Fatal error:  Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given in /wp-content/plugins/wpdeepl/client/deeplapi-translate.class.php:140
    Stack trace:
    #0 /wp-content/plugins/wpdeepl/client/deeplapi-functions.php(25): DeepLApiTranslate->getTranslations(Array)
    #1 /wp-content/plugins/wpdeepl/modules/deepl-translate-post.php(208): deepl_translate('et_EE', 'en_US', Array)
    #2 /wp-content/plugins/wpdeepl/modules/deepl-translate-post.php(93): deepl_translate_post_link(Array)
    #3 /wp-includes/class-wp-hook.php(324): deepl_maybe_translate_post('')
    #4 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #5 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /wp-admin/admin.php(175): do_action('admin_init')
    #7 /wp-admin/post.php(12): require_once('/data02/virt271...')
    #8 {main}
      thrown in /wp-content/plugins/wpdeepl/client/deeplapi-translate.class.php on line 140

    Can you please check?

    Here if information on the repeater field: https://www.advancedcustomfields.com/resources/repeater/

    Basically it allows you to create subitems with subfields to a parent repeater field.

    • This topic was modified 10 months, 1 week ago by phidotee.
Viewing 1 replies (of 1 total)
  • Thread Starter phidotee

    (@phidotee)

    I was able to get passed the PHP Fatal error by adding few conditional checks in the plugin code, but the issue with being able to translate repeater fields is still there – instead of translating each of subitems, it overwrites all subitems with same content from the last subitem, so you end up having let say 5 subitems with same translated content from the last item.

Viewing 1 replies (of 1 total)
  • The topic ‘ACF repeater fields not translated’ is closed to new replies.