Controlling the AD5254 Digital Potentiometer

That would certainly be a problem. I would be running the "i2c bus scanner" on that page I linked. Perhaps the device has a different address to what you expect.