Fatal error: Uncaught Error: Call to undefined function wp_get_environment_type() in /home/error/public_html/wp-content/plugins/wordpress-seo/src/helpers/environment-helper.php:31
Stack trace:
#0 /home/error/public_html/wp-content/plugins/wordpress-seo/src/helpers/environment-helper.php(22): Yoast\WP\SEO\Helpers\Environment_Helper->get_wp_environment()
#1 /home/error/public_html/wp-content/plugins/wordpress-seo/src/helpers/indexable-helper.php(184): Yoast\WP\SEO\Helpers\Environment_Helper->is_production_mode()
#2 /home/error/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-builder.php(267): Yoast\WP\SEO\Helpers\Indexable_Helper->should_index_indexables()
#3 /home/error/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-builder.php(358): Yoast\WP\SEO\Builders\Indexable_Builder->save_indexable(Object(Yoast\WP\SEO\Models\Indexable), Object(Yoast\WP\SEO\Models\Indexable))
#4 /home/error/public_html/wp-content/plugins/wordpress-seo/src/repositories/indexable-repository.php(506): Yoast\WP\SEO in /home/error/public_html/wp-content/plugins/wordpress-seo/src/helpers/environment-helper.php on line 31