Error thrown

Call to undefined function get_page_template_slug()