I have updated to v4.2.3
I am now trying to install a new v4.2 there to work around the problem but I have a new problem. I now get a content encoding error when trying to upload any plugin or style xml.
http://i.gyazo.com/a649fc12a7dca4231570a0f8b4b40ad0.png
EDIT: I have added define('SKIP_ALL_ERRORS', true); to config and still the same error.
--------------- Added [DATE]1435456213[/DATE] at [TIME]1435456213[/TIME] ---------------
EDIT: I have added define('DISABLE_HOOKS', true); and still getting error
EDIT: I ran the sqls
UPDATE datastore SET data=REPLACE(data,'s:10:"gzipoutput";i:1;','s:10:" gzipoutput";i:0;') WHERE title='options';
UPDATE setting SET value = '0' WHERE varname = 'gzipoutput';