Hooks not working on live server

get_footer hook fires before the footer template file is loaded.

Note: This hook is best to use to set up and execute code that doesn’t get echoed to the browser until later in the page load. Anything you echo will show up before any of the markup is displayed.

Besides, make sure you call the get_footer() function in your template.

You can see the doc here.