Fatal error: Uncaught Error: Call to undefined function is_post_publicly_viewable() in /www/wp-includes/media.php:1674
Stack trace:
#0 /www/wp-includes/shortcodes.php(364): gallery_shortcode()
#1 /www/wp-includes/media.php(3654): do_shortcode_tag()
#2 /www/wp-includes/media.php(3693): get_post_galleries()
#3 /www/wp-includes/media.php(3735): get_post_gallery()
#4 /www/wp-content/plugins/wordpress-seo/frontend/class-twitter.php(92): get_post_gallery_images()
#5 /www/wp-content/plugins/wordpress-seo/frontend/class-twitter.php(77): WPSEO_Twitter->determine_card_type()
#6 /www/wp-content/plugins/wordpress-seo/frontend/class-twitter.php(54): WPSEO_Twitter->type()
#7 /www/wp-content/plugins/wordpress-seo/frontend/class-twitter.php(45): WPSEO_Twitter->twitter()
#8 /www/wp-content/plugins/wordpress-seo/frontend/class-twitter.php(629): WPSEO_Twitter->__construct()
#9 /www/wp-includes/plugin.php(524): WPSEO_Twitter::get_instance()
#10 /www/wp-content/plugins/wordpress-seo/frontend/class-frontend.php(670): do_action()
#11 /www/wp-in in /www/wp-includes/media.php on line 1674