Fatal error: Uncaught TypeError: Yoast\WP\Lib\Dependency_Injection\Container_Registry::register(): Argument #2 ($container) must be of type YoastSEO_Vendor\Symfony\Component\DependencyInjection\ContainerInterface, null given, called in /var/www/html/wp-content/plugins/wordpress-seo/lib/abstract-main.php on line 45 and defined in /var/www/html/wp-content/plugins/wordpress-seo/lib/dependency-injection/container-registry.php:28
Stack trace:
#0 /var/www/html/wp-content/plugins/wordpress-seo/lib/abstract-main.php(45): Yoast\WP\Lib\Dependency_Injection\Container_Registry::register('yoast-seo', NULL)
#1 /var/www/html/wp-content/plugins/wordpress-seo/src/functions.php(34): Yoast\WP\Lib\Abstract_Main->load()
#2 /var/www/html/wp-content/plugins/wordpress-seo/wp-seo-main.php(459): YoastSEO()
#3 /var/www/html/wp-content/plugins/wordpress-seo/wp-seo.php(50): require_once('/var/www/html/w...')
#4 /var/www/html/wp-settings.php(589): include_once('/var/www/html/w...')
#5 /var/www/html/wp-config.php(160): require_once('/var/www/html/w...')
#6 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...')
#7 /var/www/html/wp-blog-header.php(13): require_once('/var/www/html/w...')
#8 /var/www/html/index.php(2): require('/var/www/html/w...')
#9 {main}
thrown in /var/www/html/wp-content/plugins/wordpress-seo/lib/dependency-injection/container-registry.php on line 28
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6170