• Resolved Ov3rfly

    (@ov3rfly)


    Getting lots of PHP Deprecated messages in error log on a client website:

    [17-Jan-2023 12:39:37 UTC] PHP Deprecated: Die Funktion Yoast_I18n_v3::__construct ist seit Version WPSEO 19.12 veraltet und es ist keine Alternative verfügbar. in ../wp-includes/functions.php on line 5393
    [17-Jan-2023 12:39:37 UTC] PHP Deprecated: Die Funktion Yoast_I18n_v3::set_api_url ist seit Version WPSEO 19.12 veraltet und es ist keine Alternative verfügbar. in ../wp-includes/functions.php on line 5393

    Reason appears to be in file glossary-by-codeat/vendor/yoast/i18n-module/src/i18n-wordpressorg-v3.php line 28:

    public function __construct( $args, $show_translation_box = true ) {
    	$args = $this->set_defaults( $args );
    
    	$this->i18n = new Yoast_I18n_v3( $args, $show_translation_box );
    	$this->set_api_url( $args['textdomain'] );
    }

    Glossary plugin is using two functions from Yoast SEO v19.12 that are no longer supported, see also here.

    Glossary 2.1.27, Yoast SEO 19.14, WordPress 6.1.1

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thanks to let me know.
    We are using that module from Yoast but seems that they are not developing it anymore.
    I will check ASAP how to fix it maybe with a fork.

    In case someone looking for the same error now for plugins there is a fork of the original library that replace it https://github.com/WPBP/i18n-notice

    Instead, the Glossary plugin will have an update tomorrow after some testing for other changes we did.

    The new release with the fix is available now ??

    Thread Starter Ov3rfly

    (@ov3rfly)

    Thanks for quick feedback and solution.

    Currently the 2.1.28 update is not (yet?) shown in client website plugins area, will check again later.

    Thread Starter Ov3rfly

    (@ov3rfly)

    Now another 2.1.29 update was shown.

    Installed it and now a probably incomplete banner with Glossary icon is shown in plugins list with this text:

    Translation of _______ (name of plugin missing?)

    You’re using WordPress in German. While _______ (name of plugin missing?) has been translated to German for 0%, it’s not been shipped with the plugin yet. …

    Ok I spotted the issue, I will do a new release the next week to address that.
    You should be able to close it anyway.

    I finally had time for release with that last fix, I am closing it as the main bug was resolved in the previous release.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bug: PHP Deprecated Yoast_I18n_v3 with no alternative available’ is closed to new replies.