iPhone error message: “This accessory is not made to work with the iPhone”

If your iphone starts flashing the error message “This accessory is not made to work with the iphone” whenever you plug it in to try to sync it with iTunes, try plugging it directly into the computer, with no hub or dock in between.

Dirt or corrosion in the socket in the iPhone can also cause this, and sometimes it can be solved by scrubbing the socket with a clean dry toothbrush.