Added temporary fixes to PHP errors