fix rest of php errors