Hi therembrandt,
What file were you editing when you got the error?
Hi Steve,
Just to check, is it an Apache server (as opposed to Nginx)?
What version are you trying to update from?
I had something similar happen to me on a shared hosting plan. They switched my site to a different server and it fixed the issue.