How to fix Call to undefined method WP_Translations::translate_entry()

by

in

If your WordPress site uses the plugin RokSprocket, you just upgraded to WordPress 6.5, and are getting this error…

Uncaught exception: Call to undefined method WP_Translations::translate_entry()

fix for Call to undefined method WP_Translations::translate_entry()

go to /wp_content/plugins/wp_rokcommon/RokCommon/l18N/Wordpress.php at line 38, 72, 98 change

$translation = $translator->translate_entry($entry);
to
$translation = $translator->translate($string);

Comments

3 responses to “How to fix Call to undefined method WP_Translations::translate_entry()”

  1. Chad Luellen Avatar
    Chad Luellen

    Thanks!

  2. Thank you so much from Puro Web Design Argentina. You saved us several hours of work trying to find the error. Greetings from the south!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.