wip:Fix php errors.