• Resolved daavisr

    (@daavisr)


    [14-May-2024 09:15:48 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method WP_Translations::translate_entry() in C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\gettext\class-plural-forms.php:152
    Stack trace:
    #0 C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\gettext\class-gettext-manager.php(528): TRP_Plural_Forms->translate_plural('Sorry, you are ...', 'Sorrys, you are...', 1, NULL, Object(WP_Translations))
    #1 C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\string-translation\class-string-translation-api-gettext.php(72): TRP_Gettext_Manager->add_missing_language_file_translations(Array, 'de_DE')
    #2 C:\test\app\public\wp-includes\class-wp-hook.php(324): TRP_String_Translation_API_Gettext->get_missing_gettext_strings('')
    #3 C:\test\app\public\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #4 C:\test\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array)
    #5 C:\test\app\public\wp-admin\admin-ajax.php(192): do_action('wp_ajax_trp_str...')
    #6 {main}
      thrown in C:\test\app\public\wp-content\plugins\translatepress-multilingual\includes\gettext\class-plural-forms.php on line 152

    There is an error loading gettext strings in String Translation editor when a gettext string has ‘original_plural’ field specified in wp_trp_gettext_original_strings table. It seems that there have been changes in WordPress and translate_entry method no longer exists on get_translations_for_domain() result object. I am using WordPress 6.5.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter daavisr

    (@daavisr)

    Forgot to mention – I am using TranslatePress latest (2.7.6) version.

    Plugin Support Anca

    (@ancavictoria)

    Hello @daavisr

    Thank you for reporting this!

    I have reported this to my colleagues in the development team, and it will be resolved in a future update.

    I will let you know when the fix will be available.

    Kind Regards,

    Anca

    Hello,

    I am experiencing the same fatal error with Translatepress 2.8.2:

    PHP Fatal error: Uncaught Error: Call to undefined method WP_Translations::translate_entry() in /xx/public_html/wp-content/plugins/translatepress-multilingual/includes/gettext/class-plural-forms.php:152  
    Dodatkowy kontekst
    {
    "error": {
    "type": 1,
    "file": "/xx/wp-content/plugins/translatepress-multilingual/includes/gettext/class-plural-forms.php",
    "line": 152
    },
    "backtrace": [
    "",
    "#0 /xx/public_html/wp-content/plugins/translatepress-multilingual/includes/gettext/class-gettext-manager.php(528): TRP_Plural_Forms->translate_plural('Address', 'Addresses', 0, NULL, Object(WP_Translations))",
    "#1 /xx/public_html/wp-content/plugins/translatepress-multilingual/includes/string-translation/class-string-translation-api-gettext.php(72): TRP_Gettext_Manager->add_missing_language_file_translations(Array, 'en_GB')",
    "#2 /xx/public_html/wp-includes/class-wp-hook.php(324): TRP_String_Translation_API_Gettext->get_missing_gettext_strings('')",
    "#3 xx/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)",
    "#4 /xx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)",
    "#5 /xx/public_html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_trp_str...')",
    "#6 {main}",
    "thrown"
    ]
    }

    When do you plan do resolve the issue?

    Best Regards,

    Inga

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.