• Resolved Denis Žoljom

    (@dingo_d)


    I updated the plugins for my client, locally, and I got the following errors:

    ( ! ) Deprecated: Function Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional::get_feature_flag is <strong>deprecated</strong> since version Yoast SEO 20.5 with no alternative available. in .../wp-includes/functions.php on line 5423
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0004	368664	{main}( )	.../server.php:0
    2	0.0108	413992	require( '.../wp-admin/update-core.php )	.../server.php:250
    3	0.0121	415352	require_once( '.../wp-admin/admin.php )	.../update-core.php:10
    4	0.0122	416168	require_once( '.../wp-load.php )	.../admin.php:34
    5	0.0122	416752	require_once( '.../wp-config.php )	.../wp-load.php:50
    6	0.0123	431640	require_once( '.../wp-settings.php )	.../wp-config.php:104
    7	0.2231	10229496	do_action( $hook_name = 'init' )	.../wp-settings.php:623
    8	0.2231	10229872	WP_Hook->do_action( $args = [0 => ''] )	.../plugin.php:517
    9	0.2231	10229872	WP_Hook->apply_filters( $value = '', $args = [0 => ''] )	.../class-wp-hook.php:332
    10	0.2499	12857928	Yoast\WP\SEO\Loader->load_integrations( '' )	.../class-wp-hook.php:308
    11	0.2509	12927128	Yoast\WP\SEO\Loader->conditionals_are_met( $loadable_class = 'Yoast\\WP\\SEO\\Integrations\\Blocks\\Block_Patterns' )	.../loader.php:209
    12	0.2510	12928424	Yoast\WP\SEO\Conditionals\Feature_Flag_Conditional->is_met( )	.../loader.php:271
    13	0.2510	12928424	Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional->get_feature_flag( )	.../feature-flag-conditional.php:16
    14	0.2510	12928424	_deprecated_function( $function_name = 'Yoast\\WP\\SEO\\Conditionals\\Schema_Blocks_Conditional::get_feature_flag', $version = 'Yoast SEO 20.5', $replacement = ??? )	.../schema-blocks-conditional.php:20
    15	0.2510	12928744	trigger_error( $message = 'Function Yoast\\WP\\SEO\\Conditionals\\Schema_Blocks_Conditional::get_feature_flag is <strong>deprecated</strong> since version Yoast SEO 20.5 with no alternative available.', $error_level = 16384 )	

    Any idea what could be causing it? I only see this function being used in the SEO plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jose Varghese

    (@josevarghese)

    Hi @dingo_d

    Thanks for using Yoast SEO plugin. The deprecated notice (below) is caused by having an outdated version of either Yoast SEO (free) or Yoast SEO Premium while running the current version of the other. The current version of both plugins is 20.5. If you use an older version of any Yoast SEO Premium plugins, you will notice the following error.

    Deprecated: Function Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional::get_feature_flag is deprecated since version Yoast SEO 20.5 with no alternative available.

    If you are a premium user (as we cannot verify it as the website URL is not shared), please note that this forum is reserved for supporting the free version of Yoast SEO. If yes, please contact our support team for assistance if you have an active premium subscription. How can I get premium support?

    Plugin Support Jose Varghese

    (@josevarghese)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

    Thread Starter Denis Žoljom

    (@dingo_d)

    Thanks for the answer, it could be that the plugin is outdated. Will check and update it 👍🏻

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated function get_feature_flag on premium plugin’ is closed to new replies.