Fatal error: Uncaught Error: Call to undefined function wp_get_upload_dir() in /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php:157 Stack trace: #0 /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php(203): WPSEO_Image_Utils::get_absolute_path('/www/htdocs/w01...') #1 /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php(96): WPSEO_Image_Utils::get_file_size(Array) #2 /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php(269): WPSEO_Image_Utils::has_usable_file_size(Array) #3 /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/frontend/class-opengraph-image.php(423): WPSEO_Image_Utils::filter_usable_file_size(Array) #4 /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/frontend/class-opengraph-image.php(326): WPSEO_OpenGraph_Image->add_image_by_id(113) #5 /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/frontend in /www/htdocs/w01413fe/wordpress/wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 157