Here's a few lines in defence of Pius IX sent to me from a good friend a while back.
"The story of the sainted Pius IX is cut from the same cloth (as the story of
Benedict XIV). 'It started in Germany,', says John Gilmary Shea, in the "Life
of Pope Pius IX", pp. 291, 292, "and they thought that by putting the scene in
America, they would escape detection. They declared positively that Pius IX
had been received into a Masonic lodge in Philadelphia, cited his discourses,
and declared that a number of his autographs were preserved in the lodge.
Unfortunately for the story, Philadelphia is in the civilized world. People there
could read and write. They examined the story and found there was no
Masonic lodge in that city by the name given; they found that no lodge in
Philadelphia had ever received John Mary Mastai; they could find no trace of
his ever having been there, as he never was; no lodge had any of his
autograph letters; Masons themselves attested that the whole (story) was a
pure invention. The slander thus refuted has been revived from time to time
but in later versions care is taken not to specify the lodge or city too
distinctly."