I had a related issue that may help:
The round magentic disk in the charge-port door is attached to the plastic interior of the door via a little foam adhesive pad. It allows the metal disk to "float" a little bit, thus when the door is closed, the magnetism pulls the disk tight against the "latch" on the port.
I believe this is important because the disk not only holds the spring-loaded port door closed, but it also completes the circuit in the port latch (you'll notice two concentric circles on the round port latch, I believe those are the circuit contacts.)
In my case, the adhesive on foam pad failed, and the magnetic disc fell out of the port door. As a temp solution I glued it back in, but when the glue hardened, it prevented the disk from sitting squarely against the latch, and although the door held closed, that car thought the port was still open.
I'd suspect you have some alignment issues with your recent replacement that are causing a similar situation...