I don't know which mid-2012 MBP (13" or 15") you have, but in both cases, you do need to at least unscrew the AirPort/Bluetooth board in order to remove the optical drive. So that's where I would suspect first that things went wrong. That's presuming you did both the SSD and RAM replacement at the same time. The iFixit guide for the 13" recommends removing more stuff than the iFixit guide for the 15" or the OWC video guide. When I did my replacement, I followed the OWC video guide with regards to this step. If you removed some of those small connectors, make sure those are securely attached. It's also not difficult to break these if you apply too much pressure one way or the other. Even if you didn't remove these connectors, it may have also come loose when you did the replacement so check it to make sure they're secure. Also check to make sure the AirPort/Bluetooth ribbon cable is connected.
I assume also that you're using a proper bracket for the SSD (vs some ad-hoc remedy to hold the SSD in place). If not, maybe you should.