Fatal error: Uncaught Error: Call to undefined function wp_is_serving_rest_request() in /home/websg/public_html/chan.com.sg/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:551
Stack trace:
#0 /home/websg/public_html/chan.com.sg/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(461): Yoast\WP\SEO\Integrations\Front_End_Integration->maybe_remove_title_presenter(Array)
#1 /home/websg/public_html/chan.com.sg/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(417): Yoast\WP\SEO\Integrations\Front_End_Integration->get_needed_presenters('Post_Type')
#2 /home/websg/public_html/chan.com.sg/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(379): Yoast\WP\SEO\Integrations\Front_End_Integration->get_presenters('Post_Type', Object(Yoast\WP\SEO\Context\Meta_Tags_Context))
#3 /home/websg/public_html/chan.com.sg/wp-includes/class-wp-hook.php(308): Yoast\WP\SEO\Integrations\Front_End_Integration->present_head('')
#4 /home/websg/public_html/chan.com.sg/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#5 /home/websg/public_html/chan.com.sg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#6 /home/websg/public_html/chan.com.sg/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php(366): do_action('wpseo_head')
#7 /home/websg/public_html/chan.com.sg/wp-includes/class-wp-hook.php(308): Yoast\WP\SEO\Integrations\Front_End_Integration->call_wpseo_head('')
#8 /home/websg/public_html/chan.com.sg/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#9 /home/websg/public_html/chan.com.sg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /home/websg/public_html/chan.com.sg/wp-includes/general-template.php(3049): do_action('wp_head')
#11 /home/websg/public_html/chan.com.sg/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-header-template.php(11): wp_head()
#12 /home/websg/public_html/chan.com.sg/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(216): require_once('/home/websg/pub...')
#13 /home/websg/public_html/chan.com.sg/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(247): et_theme_builder_frontend_override_partial('header', '', 'wp_head')
#14 /home/websg/public_html/chan.com.sg/wp-includes/class-wp-hook.php(310): et_theme_builder_frontend_override_header(NULL)
#15 /home/websg/public_html/chan.com.sg/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#16 /home/websg/public_html/chan.com.sg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#17 /home/websg/public_html/chan.com.sg/wp-includes/general-template.php(38): do_action('get_header', NULL, Array)
#18 /home/websg/public_html/chan.com.sg/wp-content/themes/Divi/page.php(3): get_header()
#19 /home/websg/public_html/chan.com.sg/wp-includes/template-loader.php(106): include('/home/websg/pub...')
#20 /home/websg/public_html/chan.com.sg/wp-blog-header.php(19): require_once('/home/websg/pub...')
#21 /home/websg/public_html/chan.com.sg/index.php(17): require('/home/websg/pub...')
#22 {main}
thrown in /home/websg/public_html/chan.com.sg/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php on line 551