Added a missing "$this->" preceding a call to write_err().