No way it was wired as it was before if this is happening.
Now there's a dead short.
Add your location in your profile, in the US it should have been 1, white (nutral) 1, black, (Hot) and one bare ground wire.
Look at the old outlet to see if the tab was broken off between the two outlets.
That would mean you have one side hot all the time and one goes to a switch. Connect it without breaking off that tab and it's shorted out.
Now there's a dead short.
Add your location in your profile, in the US it should have been 1, white (nutral) 1, black, (Hot) and one bare ground wire.
Look at the old outlet to see if the tab was broken off between the two outlets.
That would mean you have one side hot all the time and one goes to a switch. Connect it without breaking off that tab and it's shorted out.