Fix multiple PHP errors.