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

One response to “How to fix Call to undefined method WP_Translations::translate_entry()”

  1. Chad Luellen Avatar
    Chad Luellen

    Thanks!

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.