Notice: Undefined variable: attachment_id in /home/miagolare/www/wp/nms_test/wp-content/themes/nms/functions.php on line 752

Fatal error: Uncaught Error: Call to undefined function wp_generate_attachment_metadata() in /home/miagolare/www/wp/nms_test/wp-content/themes/nms/functions.php:753 Stack trace: #0 /home/miagolare/www/wp/nms_test/wp-settings.php(426): include() #1 /home/miagolare/www/wp/nms_test/wp-config.php(93): require_once('/home/miagolare...') #2 /home/miagolare/www/wp/nms_test/wp-load.php(37): require_once('/home/miagolare...') #3 /home/miagolare/www/wp/nms_test/wp-blog-header.php(13): require_once('/home/miagolare...') #4 /home/miagolare/www/wp/nms_test/index.php(17): require('/home/miagolare...') #5 {main} thrown in /home/miagolare/www/wp/nms_test/wp-content/themes/nms/functions.php on line 753