After updating a Wordpress, or merely doing something minor like attempting to deactivate a plugin, the site might get occasionally get stuck in a non-functional state where it merely outputs an error message like the following:
Fatal error: Call to undefined function nocache_headers() in /wp-admin/admin.php
What might be the cause for this happening?