Get one’s wires crossed
Is to have a misunderstanding or get confused and dates from the early 20th century. It derives from the early days of the US telephone system where crossed lines or wires were frequent occurrences and caused misunderstandings and confusion.