Fetching details from the dictionary...
to put on (another's shoes by mistake); to put (shoes) on the wrong feet
to mistake (one thing for another); to confuse; to have a mistaken idea of; to misunderstand