How do I get rid of Invalid Source Port Errors please?

Hi, I am getting the following errors popping up in the log whenever loading up a Project containing a midi track, and also when I click on a midi track:

2022-07-26T22:03:11 [ERROR]: ardour::connect: Invalid Source port: (system:midi_capture_Oxygen 25)
2022-07-26T22:03:11 [ERROR]: ardour::connect: Invalid Source port: (system:midi_capture_USB Midi Cable)

I used to use those Sources for midi ( Oxygen 25 and Midi Cable) but do not have them anymore (I am now using only Oxygen 49).

Why does it still keep expecting those sources to be connected and how can I get rid of those annoying messages please? I haven’t been able to find a solution for this, after 6 months it’s really starting to bug me.

Any help would be very much appreciated.

Thank you,

Nick