Cannot login after a broken update

Move your new local.php to the old install and see if that solves your problem. The local.php might have DOS carriage returns. Do the former or convert the “bad” local.php to Unix format.

DOS2Unix