Fix php errors.