Call to undefined method WP_Translations::translate_entry()
-
[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)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.