Thanks Weston that fixed it for me.
Here is a code snippets JSON if anyone wants it.
{"generator":"Code Snippets v2.10.1.1","date_created":"2018-05-04 19:46","snippets":[{"name":"Fix AMP 500 Error","desc":"Workaround to ensure that YoastSEO_AMP_Frontend::$front is defined prior to YoastSEO_AMP_Frontend::fix_amp_post_metadata() running.\r\n\r\nhttps:\/\/github.com\/Yoast\/yoastseo-amp\/pull\/89\r\nhttps:\/\/www.remarpro.com\/support\/topic\/%F0%9F%91%89-read-before-submitting-a-support-topic\/\r\nhttps:\/\/www.remarpro.com\/support\/topic\/amp-0-7-error-500\/\r\n","scope":"global","code":"\/**\r\n * Workaround to ensure that YoastSEO_AMP_Frontend::$front is defined prior to YoastSEO_AMP_Frontend::fix_amp_post_metadata() running.\r\n *\r\n * @link https:\/\/github.com\/Yoast\/yoastseo-amp\/pull\/89\r\n * @see YoastSEO_AMP_Frontend::fix_amp_post_data\r\n * @see YoastSEO_AMP_Frontend::fix_amp_post_metadata()\r\n * @param array $data Pass-through data.\r\n * @return array Data.\r\n *\/\r\nfunction amp_wp_yoast_glue_temp_workaround( $data ) {\r\n\tamp_get_schemaorg_metadata();\r\n\treturn $data;\r\n}\r\nadd_filter( 'amp_post_template_data', 'amp_wp_yoast_glue_temp_workaround', 9 ); \/\/ Before 10."}]}