Skip Navigation


Resolved in: 3.0.1

Topic Tags: String Translation

Overview of the issue

If your site is running WordPress version older than version 5.0, you could encounter a PHP error related to the wp_script_translations function.

This happens because this function was introduced in WordPress 5.0. so previous versions cannot find it.


This will be fixed in the next WPML hotfix version. Meanwhile, it’s safe to comment out (or completely remove) the line 70 in the UI.php file found in the ../wp-content/plugins/wpml-string-translation/classes/translations-file-scan/UI/ folder.

Remove the following line:

wp_set_script_translations( $handle, 'wpml-string-translation', WPML_ST_PATH . "/locale/jed/$handle" );