I have managed to fix the problem, sometime within the last few day the mentioned files have been updated in one way or another which has caused the issue simply rolling back the file to a previous version fixed the problem. The error occurred when trying to access the admin page.