pmml conversion of glm model Error in .pmmlDataDictionary(field, weights = weights, transformed = transforms) : nmatrix.2 class is not supported for features. Supported classes: numeric, logical, factor.

I have a logistic regression model that I'm trying to convert to pmml
the model has a number of independent variables but also a polynomial with poly(x,2). X is a real number parameter

when I run pmml it generates an error
Error in .pmmlDataDictionary(field, weights = weights, transformed = transforms) :
nmatrix.2 class is not supported for features. Supported classes: numeric, logical, factor.