fix remainder of php errors